@@ -3128,8 +3128,8 @@ void SelectionDAGBuilder::visitSPDescriptorParent(StackProtectorDescriptor &SPD,
31283128 MachinePointerInfo::getFixedStack(DAG.getMachineFunction(), FI), Align,
31293129 MachineMemOperand::MOVolatile);
31303130
3131- if (TLI.useStackGuardXorFP ())
3132- GuardVal = TLI.emitStackGuardXorFP (DAG, GuardVal, dl, false);
3131+ if (TLI.useStackGuardMixCookie ())
3132+ GuardVal = TLI.emitStackGuardMixCookie (DAG, GuardVal, dl, false);
31333133
31343134 // If we're using function-based instrumentation, call the guard check
31353135 // function
@@ -3237,8 +3237,8 @@ void SelectionDAGBuilder::visitSPDescriptorFailure(
32373237 MachinePointerInfo::getFixedStack(DAG.getMachineFunction(), FI), Align,
32383238 MachineMemOperand::MOVolatile);
32393239
3240- if (TLI.useStackGuardXorFP ())
3241- GuardVal = TLI.emitStackGuardXorFP (DAG, GuardVal, dl, true);
3240+ if (TLI.useStackGuardMixCookie ())
3241+ GuardVal = TLI.emitStackGuardMixCookie (DAG, GuardVal, dl, true);
32423242
32433243 // The target provides a guard check function to validate the guard value.
32443244 // Generate a call to that function with the content of the guard slot as
@@ -7380,8 +7380,8 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I,
73807380 MachinePointerInfo(Global, 0), Align,
73817381 MachineMemOperand::MOVolatile);
73827382 }
7383- if (TLI.useStackGuardXorFP ())
7384- Res = TLI.emitStackGuardXorFP (DAG, Res, sdl, false);
7383+ if (TLI.useStackGuardMixCookie ())
7384+ Res = TLI.emitStackGuardMixCookie (DAG, Res, sdl, false);
73857385 DAG.setRoot(Chain);
73867386 setValue(&I, Res);
73877387 return;
0 commit comments