mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
Avoid going through the LLVMContext for type equality where it's safe to dereference the type pointer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92726 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -498,7 +498,7 @@ static void ThunkGToF(Function *F, Function *G) {
|
||||
CallInst *CI = CallInst::Create(F, Args.begin(), Args.end(), "", BB);
|
||||
CI->setTailCall();
|
||||
CI->setCallingConv(F->getCallingConv());
|
||||
if (NewG->getReturnType() == Type::getVoidTy(F->getContext())) {
|
||||
if (NewG->getReturnType()->isVoidTy()) {
|
||||
ReturnInst::Create(F->getContext(), BB);
|
||||
} else if (CI->getType() != NewG->getReturnType()) {
|
||||
Value *BCI = new BitCastInst(CI, NewG->getReturnType(), "", BB);
|
||||
|
Reference in New Issue
Block a user