BoundsChecking: Fix refacto.

llvm-svn: 191676
This commit is contained in:
Benjamin Kramer 2013-09-30 15:52:50 +00:00
parent 6e931528fe
commit f00472908a
1 changed files with 1 additions and 0 deletions

View File

@ -82,6 +82,7 @@ BasicBlock *BoundsChecking::getTrapBB() {
Function *Fn = Inst->getParent()->getParent();
IRBuilder<>::InsertPointGuard Guard(*Builder);
TrapBB = BasicBlock::Create(Fn->getContext(), "trap", Fn);
Builder->SetInsertPoint(TrapBB);
llvm::Value *F = Intrinsic::getDeclaration(Fn->getParent(), Intrinsic::trap);
CallInst *TrapCall = Builder->CreateCall(F);