mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
Strip off pointer casts when looking at the eh.sjlj.functioncontext's argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140678 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eef108d560
commit
adbf7b2c56
@ -4757,7 +4757,8 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
|
||||
case Intrinsic::eh_sjlj_functioncontext: {
|
||||
// Get and store the index of the function context.
|
||||
MachineFrameInfo *MFI = DAG.getMachineFunction().getFrameInfo();
|
||||
AllocaInst *FnCtx = cast<AllocaInst>(I.getArgOperand(0));
|
||||
AllocaInst *FnCtx =
|
||||
cast<AllocaInst>(I.getArgOperand(0)->stripPointerCasts());
|
||||
int FI = FuncInfo.StaticAllocaMap[FnCtx];
|
||||
MFI->setFunctionContextIndex(FI);
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user