summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Verifier.cpp
diff options
context:
space:
mode:
authorJoseph Tremoulet <jotrem@microsoft.com>2016-01-02 15:50:34 +0000
committerJoseph Tremoulet <jotrem@microsoft.com>2016-01-02 15:50:34 +0000
commitd425dd13ad8d82802e40d5a05be15f7f847d45cf (patch)
treec7503df95fe605d10b1c89b5ab1862bd5e544182 /llvm/lib/IR/Verifier.cpp
parent131a462690f0cfcd8c01858ab9647128ccab9111 (diff)
downloadbcm5719-llvm-d425dd13ad8d82802e40d5a05be15f7f847d45cf.tar.gz
bcm5719-llvm-d425dd13ad8d82802e40d5a05be15f7f847d45cf.zip
[Verifier] Add braces to satisfy buildbots. NFC
Fix build break introduced by r256691. llvm-svn: 256692
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r--llvm/lib/IR/Verifier.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index 20ae82905a8..e469382a660 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/lib/IR/Verifier.cpp
@@ -3082,9 +3082,10 @@ void Verifier::visitCatchSwitchInst(CatchSwitchInst &CatchSwitch) {
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);
}
OpenPOWER on IntegriCloud