diff options
author | Rui Ueyama <ruiu@google.com> | 2017-09-27 22:03:15 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2017-09-27 22:03:15 +0000 |
commit | 0dbb0f107e3b3dfd976c3f16d22958c6af1fa890 (patch) | |
tree | c9e26a5e97e5e6de83d4d2381b125022eea49a67 | |
parent | 4f3ebd537c7396e224f68824f34f6b449a735f64 (diff) | |
download | bcm5719-llvm-0dbb0f107e3b3dfd976c3f16d22958c6af1fa890.tar.gz bcm5719-llvm-0dbb0f107e3b3dfd976c3f16d22958c6af1fa890.zip |
Fix -Wunused-variable for Release build.
llvm-svn: 314353
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp b/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp index 5d828366da2..115d9983b43 100644 --- a/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp +++ b/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp @@ -1298,7 +1298,6 @@ PreservedAnalyses LoopUnrollPass::run(Function &F, // for unrolling is only needed to get optimization remarks emitted in // a forward order. Loop &L = *Worklist.pop_back_val(); - Loop *ParentL = L.getParentLoop(); // The API here is quite complex to call, but there are only two interesting // states we support: partial and full (or "simple") unrolling. However, to @@ -1320,6 +1319,7 @@ PreservedAnalyses LoopUnrollPass::run(Function &F, // The parent must not be damaged by unrolling! #ifndef NDEBUG + Loop *ParentL = L.getParentLoop(); if (Result != LoopUnrollResult::Unmodified && ParentL) ParentL->verifyLoop(); #endif |