diff options
| author | Eric Christopher <echristo@gmail.com> | 2017-11-16 03:18:13 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2017-11-16 03:18:13 +0000 |
| commit | 7f04e87a0f9d6bb084e8201a896f638530059e59 (patch) | |
| tree | b3d5c2db4063c82065803c97fa127bfdedca2825 | |
| parent | f18016c640fd3d226015d59682c0bcd55ab10121 (diff) | |
| download | bcm5719-llvm-7f04e87a0f9d6bb084e8201a896f638530059e59.tar.gz bcm5719-llvm-7f04e87a0f9d6bb084e8201a896f638530059e59.zip | |
Need to work around the gcc Wunused-function bug as far back as gcc 6.1, update accordingly.
llvm-svn: 318372
| -rw-r--r-- | llvm/unittests/Transforms/Scalar/LoopPassManagerTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/unittests/Transforms/Scalar/LoopPassManagerTest.cpp b/llvm/unittests/Transforms/Scalar/LoopPassManagerTest.cpp index 60c58466d45..2b8130b9e00 100644 --- a/llvm/unittests/Transforms/Scalar/LoopPassManagerTest.cpp +++ b/llvm/unittests/Transforms/Scalar/LoopPassManagerTest.cpp @@ -21,8 +21,8 @@ #include "llvm/IR/PassManager.h" #include "llvm/Support/SourceMgr.h" -// Workaround for the gcc 7.1 bug PR80916. -#if defined(__GNUC__) && __GNUC__ > 6 +// Workaround for the gcc 6.1 bug PR80916. +#if defined(__GNUC__) && __GNUC__ > 5 # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wunused-function" #endif @@ -30,7 +30,7 @@ #include "gmock/gmock.h" #include "gtest/gtest.h" -#if defined(__GNUC__) && __GNUC__ > 6 +#if defined(__GNUC__) && __GNUC__ > 5 # pragma GCC diagnostic pop #endif |

