File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6207,6 +6207,9 @@ void ARMBaseInstrInfo::mergeOutliningCandidateAttributes(
6207
6207
if (CFn.hasFnAttribute (" branch-target-enforcement" ))
6208
6208
F.addFnAttr (CFn.getFnAttribute (" branch-target-enforcement" ));
6209
6209
6210
+ if (CFn.hasFnAttribute (" sign-return-address" ))
6211
+ F.addFnAttr (CFn.getFnAttribute (" sign-return-address" ));
6212
+
6210
6213
ARMGenInstrInfo::mergeOutliningCandidateAttributes (F, Candidates);
6211
6214
}
6212
6215
@@ -6623,10 +6626,7 @@ void ARMBaseInstrInfo::buildOutlinedFrame(
6623
6626
MBB.addLiveIn (ARM::LR);
6624
6627
6625
6628
// Insert a save before the outlined region
6626
- bool Auth = OF.Candidates .front ()
6627
- .getMF ()
6628
- ->getInfo <ARMFunctionInfo>()
6629
- ->shouldSignReturnAddress (true );
6629
+ bool Auth = MF.getInfo <ARMFunctionInfo>()->shouldSignReturnAddress (true );
6630
6630
saveLROnStack (MBB, It, true , Auth);
6631
6631
6632
6632
// Fix up the instructions in the range, since we're going to modify the
You can’t perform that action at this time.
0 commit comments