[llvm] r293812 - Shut up another GCC warning about operator precedence. NFC.
Michael Kuperstein via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 1 13:06:33 PST 2017
Author: mkuper
Date: Wed Feb 1 15:06:33 2017
New Revision: 293812
URL: http://llvm.org/viewvc/llvm-project?rev=293812&view=rev
Log:
Shut up another GCC warning about operator precedence. NFC.
Modified:
llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp
Modified: llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp?rev=293812&r1=293811&r2=293812&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp Wed Feb 1 15:06:33 2017
@@ -472,7 +472,7 @@ bool llvm::UnrollLoop(Loop *L, unsigned
BasicBlock *New = CloneBasicBlock(*BB, VMap, "." + Twine(It));
Header->getParent()->getBasicBlockList().push_back(New);
- assert(*BB != Header || LI->getLoopFor(*BB) == L &&
+ assert((*BB != Header || LI->getLoopFor(*BB) == L) &&
"Header should not be in a sub-loop");
// Tell LI about New.
const Loop *OldLoop = addClonedBlockToLoopInfo(*BB, New, LI, NewLoops);
More information about the llvm-commits
mailing list