[PATCH] D25453: Add -fno-sanitize-address-use-after-scope flag
Evgeniy Stepanov via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 10 14:05:44 PDT 2016
eugenis accepted this revision.
eugenis added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: lib/Frontend/CompilerInvocation.cpp:739
+ UasArg &&
+ UasArg->getOption().matches(OPT_fsanitize_address_use_after_scope);
Opts.SSPBufferSize =
----------------
Consider doing this the same way as EmitLLVMUseLists above to avoid a function level declaration.
================
Comment at: test/Driver/fsanitize.c:124
+// RUN: %clang -target x86_64-linux-gnu -fsanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-WITHOUT-USE-AFTER-SCOPE
+// CHECK-ASAN-WITHOUT-USE-AFTER-SCOPE-NOT: -cc1{{.*}}address-use-after-scope
----------------
Check the case
-fno-sanitize-address-use-after-scope -fsanitize-address-use-after-scope
https://reviews.llvm.org/D25453
More information about the cfe-commits
mailing list