[llvm] 68a9308 - [hwasan] Allow -hwasan-globals flag to appear more than once.

Evgenii Stepanov via llvm-commits llvm-commits at lists.llvm.org
Fri May 8 16:40:59 PDT 2020


Author: Evgenii Stepanov
Date: 2020-05-08T16:35:48-07:00
New Revision: 68a9308a0b8c925524318639e8fe394a53d1692b

URL: https://github.com/llvm/llvm-project/commit/68a9308a0b8c925524318639e8fe394a53d1692b
DIFF: https://github.com/llvm/llvm-project/commit/68a9308a0b8c925524318639e8fe394a53d1692b.diff

LOG: [hwasan] Allow -hwasan-globals flag to appear more than once.

Added: 
    

Modified: 
    llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
index 0b9856b5126a..ebfb9c80d2f9 100644
--- a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
@@ -124,7 +124,7 @@ static cl::opt<bool> ClGenerateTagsWithCalls(
     cl::init(false));
 
 static cl::opt<bool> ClGlobals("hwasan-globals", cl::desc("Instrument globals"),
-                               cl::Hidden, cl::init(false));
+                               cl::Hidden, cl::init(false), cl::ZeroOrMore);
 
 static cl::opt<int> ClMatchAllTag(
     "hwasan-match-all-tag",


        


More information about the llvm-commits mailing list