Browse Source

Avoid warning of unused variable in release builds. NFC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302068 91177308-0d34-0410-b5e6-96231b3b80d8
Anna Thomas 8 years ago
parent
commit
f931b1e7f3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/Transforms/Utils/LoopUnrollRuntime.cpp

+ 2 - 0
lib/Transforms/Utils/LoopUnrollRuntime.cpp

@@ -520,6 +520,8 @@ bool llvm::UnrollRuntimeLoopRemainder(Loop *L, unsigned Count,
       (LatchBR->getSuccessor(0) == Exit || LatchBR->getSuccessor(1) == Exit) &&
       "one of the loop latch successors should be "
       "the exit block!");
+  // Avoid warning of unused `LatchBR` variable in release builds.
+  (void)LatchBR;
   // Loop structure is the following:
   //
   // PreHeader