mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
BoundsChecking: Fix refacto.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191676 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d427882166
commit
b313a93be7
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user