diff options
author | Filipe Cabecinhas <me@filcab.net> | 2018-11-02 17:29:04 +0000 |
---|---|---|
committer | Filipe Cabecinhas <me@filcab.net> | 2018-11-02 17:29:04 +0000 |
commit | 0eb5008352d8c0aa63d6d6c7288c3cfd68c6486a (patch) | |
tree | 4fc312391d9dc9adaf0134fb6fa2a30e8e71b421 /clang/lib/CodeGen | |
parent | df92dabaefcff44c5688b92a6414c97d4c9e702e (diff) | |
download | bcm5719-llvm-0eb5008352d8c0aa63d6d6c7288c3cfd68c6486a.tar.gz bcm5719-llvm-0eb5008352d8c0aa63d6d6c7288c3cfd68c6486a.zip |
Change -fsanitize-address-poison-class-member-array-new-cookie to -fsanitize-address-poison-custom-array-cookie
Handle it in the driver and propagate it to cc1
Reviewers: rjmccall, kcc, rsmith
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D52615
llvm-svn: 346001
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/ItaniumCXXABI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/ItaniumCXXABI.cpp b/clang/lib/CodeGen/ItaniumCXXABI.cpp index e75532142e5..485d6c00138 100644 --- a/clang/lib/CodeGen/ItaniumCXXABI.cpp +++ b/clang/lib/CodeGen/ItaniumCXXABI.cpp @@ -1916,7 +1916,7 @@ Address ItaniumCXXABI::InitializeArrayCookie(CodeGenFunction &CGF, // Handle the array cookie specially in ASan. if (CGM.getLangOpts().Sanitize.has(SanitizerKind::Address) && AS == 0 && (expr->getOperatorNew()->isReplaceableGlobalAllocationFunction() || - CGM.getCodeGenOpts().SanitizeAddressPoisonClassMemberArrayNewCookie)) { + CGM.getCodeGenOpts().SanitizeAddressPoisonCustomArrayCookie)) { // The store to the CookiePtr does not need to be instrumented. CGM.getSanitizerMetadata()->disableSanitizerForInstruction(SI); llvm::FunctionType *FTy = |