From ed4fefb0df94799d902fadeabef4161f729ff8ca Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Mon, 26 Aug 2019 21:44:55 +0000 Subject: [hwasan] Fix test failure in r369721. Try harder to emulate "old runtime" in the test. To get the old behavior with the new runtime library, we need both disable personality function wrapping and enable landing pad instrumentation. llvm-svn: 369977 --- llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'llvm') diff --git a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp index 8a1129aa9a0..ca67eee1bef 100644 --- a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp @@ -164,11 +164,12 @@ static cl::opt static cl::opt ClInstrumentLandingPads("hwasan-instrument-landing-pads", cl::desc("instrument landing pads"), cl::Hidden, - cl::init(false)); + cl::init(false), cl::ZeroOrMore); static cl::opt ClInstrumentPersonalityFunctions( "hwasan-instrument-personality-functions", - cl::desc("instrument personality functions"), cl::Hidden, cl::init(false)); + cl::desc("instrument personality functions"), cl::Hidden, cl::init(false), + cl::ZeroOrMore); static cl::opt ClInlineAllChecks("hwasan-inline-all-checks", cl::desc("inline all checks"), -- cgit v1.2.3