[llvm] r256692 - [Verifier] Add braces to satisfy buildbots. NFC
Joseph Tremoulet via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 2 07:50:34 PST 2016
Author: josepht
Date: Sat Jan 2 09:50:34 2016
New Revision: 256692
URL: http://llvm.org/viewvc/llvm-project?rev=256692&view=rev
Log:
[Verifier] Add braces to satisfy buildbots. NFC
Fix build break introduced by r256691.
Modified:
llvm/trunk/lib/IR/Verifier.cpp
Modified: llvm/trunk/lib/IR/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Verifier.cpp?rev=256692&r1=256691&r2=256692&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Verifier.cpp (original)
+++ llvm/trunk/lib/IR/Verifier.cpp Sat Jan 2 09:50:34 2016
@@ -3082,9 +3082,10 @@ void Verifier::visitCatchSwitchInst(Catc
Assert(CatchSwitch.getNumHandlers() != 0,
"CatchSwitchInst cannot have empty handler list", &CatchSwitch);
- for (BasicBlock *Handler : CatchSwitch.handlers())
+ for (BasicBlock *Handler : CatchSwitch.handlers()) {
Assert(isa<CatchPadInst>(Handler->getFirstNonPHI()),
"CatchSwitchInst handlers must be catchpads", &CatchSwitch, Handler);
+ }
visitTerminatorInst(CatchSwitch);
}
More information about the llvm-commits
mailing list