Fix build break introduced by r256691.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256692
91177308-0d34-0410-b5e6-
96231b3b80d8
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);
}