Skip to content

Commit 2588b0f

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 490ccfc + 5623782 commit 2588b0f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/codegen/Decision.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -863,11 +863,12 @@ void abort_when_stuck(
863863
}
864864
ptr = new llvm::BitCastInst(block, block_ptr, "", current_block);
865865
}
866+
auto *func = get_or_insert_function(
867+
module, "finish_rewriting", llvm::Type::getVoidTy(ctx), block_ptr,
868+
llvm::Type::getInt1Ty(ctx));
869+
func->setDoesNotReturn();
866870
llvm::CallInst::Create(
867-
get_or_insert_function(
868-
module, "finish_rewriting", llvm::Type::getVoidTy(ctx), block_ptr,
869-
llvm::Type::getInt1Ty(ctx)),
870-
{ptr, llvm::ConstantInt::getTrue(ctx)}, "", current_block);
871+
func, {ptr, llvm::ConstantInt::getTrue(ctx)}, "", current_block);
871872
new llvm::UnreachableInst(ctx, current_block);
872873
}
873874

0 commit comments

Comments
 (0)