This is an archive of the discontinued LLVM Phabricator instance.

Add -fno-sanitize-address-use-after-scope flag
ClosedPublic

Authored by vitalybuka on Oct 10 2016, 1:52 PM.

Event Timeline

vitalybuka updated this revision to Diff 74173.Oct 10 2016, 1:52 PM
vitalybuka retitled this revision from to Add -fno-sanitize-address-use-after-scope flag.
vitalybuka updated this object.
vitalybuka added a reviewer: eugenis.
eugenis accepted this revision.Oct 10 2016, 2:05 PM
eugenis edited edge metadata.

LGTM

lib/Frontend/CompilerInvocation.cpp
736

Consider doing this the same way as EmitLLVMUseLists above to avoid a function level declaration.

test/Driver/fsanitize.c
124

Check the case
-fno-sanitize-address-use-after-scope -fsanitize-address-use-after-scope

This revision is now accepted and ready to land.Oct 10 2016, 2:05 PM
vitalybuka marked an inline comment as done.Oct 10 2016, 2:39 PM
vitalybuka added inline comments.
test/Driver/fsanitize.c
124

It's already on the line 117

vitalybuka marked 2 inline comments as done.Oct 10 2016, 2:39 PM
vitalybuka updated this revision to Diff 74176.Oct 10 2016, 2:40 PM
vitalybuka edited edge metadata.

resolved comments

This revision was automatically updated to reflect the committed changes.