This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Support multi /guard: options
ClosedPublic

Authored by pengfei on May 16 2023, 1:11 AM.

Diff Detail

Event Timeline

pengfei created this revision.May 16 2023, 1:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 16 2023, 1:11 AM
pengfei requested review of this revision.May 16 2023, 1:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 16 2023, 1:11 AM
rnk accepted this revision.May 16 2023, 8:23 AM

lgtm, thanks!

This revision is now accepted and ready to land.May 16 2023, 8:23 AM
This revision was landed with ongoing or failed builds.May 16 2023, 8:48 AM
This revision was automatically updated to reflect the committed changes.

this causes ./build/rel/bin/clang-cl /c /tmp/a.cc /Fo/tmp/a /guard:cf,nochecks to go from no warnings to

clang-cl: warning: argument unused during compilation: '/guard:cf,nochecks' [-Wunused-command-line-argument]
aeubanks reopened this revision.May 17 2023, 3:35 PM
This revision is now accepted and ready to land.May 17 2023, 3:35 PM
pengfei updated this revision to Diff 523256.May 17 2023, 9:42 PM

Sorry for the noise, I guess I missed a A->claim() here. Updated.

if you add a test for the repro, relanding lgtm

pengfei updated this revision to Diff 523745.May 19 2023, 6:22 AM

if you add a test for the repro, relanding lgtm

Thanks, done.

This revision was automatically updated to reflect the committed changes.

Sorry for the back and forth! I just want to add a : after warning, but I forgot to amend it in the first reland..

this causes ./build/rel/bin/clang-cl /c /tmp/a.cc /Fo/tmp/a /guard:cf,nochecks to go from no warnings to

clang-cl: warning: argument unused during compilation: '/guard:cf,nochecks' [-Wunused-command-line-argument]

This affects 16.0.4

this causes ./build/rel/bin/clang-cl /c /tmp/a.cc /Fo/tmp/a /guard:cf,nochecks to go from no warnings to

clang-cl: warning: argument unused during compilation: '/guard:cf,nochecks' [-Wunused-command-line-argument]

This affects 16.0.4

Sorry for making the trouble. I have made a backport request targeting 16.0.5: https://github.com/llvm/llvm-project/issues/62921