[PATCH] D55926: [HWASAN] Instrument memorty intrinsics by default
Eugene Leviant via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 20 06:30:32 PST 2018
evgeny777 created this revision.
evgeny777 added reviewers: kcc, eugenis.
https://reviews.llvm.org/D55926
Files:
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
test/Instrumentation/HWAddressSanitizer/mem-intrinsics.ll
Index: test/Instrumentation/HWAddressSanitizer/mem-intrinsics.ll
===================================================================
--- test/Instrumentation/HWAddressSanitizer/mem-intrinsics.ll
+++ test/Instrumentation/HWAddressSanitizer/mem-intrinsics.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -hwasan -hwasan-instrument-mem-intrinsics %s | FileCheck %s
+; RUN: opt -S -hwasan %s | FileCheck %s
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
Index: lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
===================================================================
--- lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
+++ lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
@@ -155,7 +155,7 @@
static cl::opt<bool>
ClInstrumentMemIntrinsics("hwasan-instrument-mem-intrinsics",
cl::desc("instrument memory intrinsics"),
- cl::Hidden, cl::init(false));
+ cl::Hidden, cl::init(true));
namespace {
/// An instrumentation pass implementing detection of addressability bugs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55926.179062.patch
Type: text/x-patch
Size: 1134 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181220/0dea28aa/attachment.bin>
More information about the llvm-commits
mailing list