]> granicus.if.org Git - llvm/commitdiff
Avoid warning of unused variable in release builds. NFC
authorAnna Thomas <anna@azul.com>
Wed, 3 May 2017 19:25:04 +0000 (19:25 +0000)
committerAnna Thomas <anna@azul.com>
Wed, 3 May 2017 19:25:04 +0000 (19:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302068 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/LoopUnrollRuntime.cpp

index 2c8e6c051781c53d58067b5804dbc37159039ef8..391fde3b0b0159888d90811fc43ea09124b5516e 100644 (file)
@@ -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