This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Add support for MSVC stack cookie checking
ClosedPublic

Authored by mstorsjo on Jul 6 2019, 1:46 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

mstorsjo created this revision.Jul 6 2019, 1:46 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 6 2019, 1:46 PM
compnerd accepted this revision.Jul 6 2019, 7:44 PM
compnerd added inline comments.
lib/Target/ARM/ARMISelLowering.cpp
15122 ↗(On Diff #208281)

Would you mind flipping the condition on L15107 and doing an early return?

if (!Subtarget->getTargetTriple().isWindowsMSVCEnvironment())
  return TargetLowering::insertSSPDeclarations(M);
This revision is now accepted and ready to land.Jul 6 2019, 7:44 PM
mstorsjo marked an inline comment as done.Jul 6 2019, 9:52 PM
mstorsjo added inline comments.
lib/Target/ARM/ARMISelLowering.cpp
15122 ↗(On Diff #208281)

Sure, I can do that

This revision was automatically updated to reflect the committed changes.
MaskRay added a subscriber: MaskRay.Jul 8 2019, 1:48 AM

@mstorsjo stack-protector-msvc.ll fails in a debug build (CLI.CS may not be set by setCallee). I fixed that in rL365299 but am not sure that is appropriate. Can you take a look? Thanks!