From f475fa3575eeaa5f445c2de2a9aafa3d95c65403 Mon Sep 17 00:00:00 2001 From: Anna Thomas Date: Wed, 3 May 2017 19:25:04 +0000 Subject: Avoid warning of unused variable in release builds. NFC llvm-svn: 302068 --- llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/Transforms') diff --git a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp b/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp index 2c8e6c05178..391fde3b0b0 100644 --- a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp +++ b/llvm/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 -- cgit v1.2.3