mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Push LLVMContexts through the IntegerType APIs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78948 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -65,7 +65,7 @@ static void ChangeToUnreachable(Instruction *I, LLVMContext &Context) {
|
||||
for (succ_iterator SI = succ_begin(BB), SE = succ_end(BB); SI != SE; ++SI)
|
||||
(*SI)->removePredecessor(BB);
|
||||
|
||||
new UnreachableInst(I);
|
||||
new UnreachableInst(I->getContext(), I);
|
||||
|
||||
// All instructions after this are dead.
|
||||
BasicBlock::iterator BBI = I, BBE = BB->end();
|
||||
|
Reference in New Issue
Block a user