mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +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:
@@ -602,7 +602,7 @@ void Interpreter::popStackAndReturnValueToCaller(const Type *RetTy,
|
||||
ExecutionContext &CallingSF = ECStack.back();
|
||||
if (Instruction *I = CallingSF.Caller.getInstruction()) {
|
||||
// Save result...
|
||||
if (CallingSF.Caller.getType() != Type::getVoidTy(RetTy->getContext()))
|
||||
if (!CallingSF.Caller.getType()->isVoidTy())
|
||||
SetValue(I, Result, CallingSF);
|
||||
if (InvokeInst *II = dyn_cast<InvokeInst> (I))
|
||||
SwitchToNewBasicBlock (II->getNormalDest (), CallingSF);
|
||||
|
||||
Reference in New Issue
Block a user