[llvm] r350055 - [HWASAN] Instrument memorty intrinsics by default
Eugene Leviant via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 24 08:02:48 PST 2018
Author: evgeny777
Date: Mon Dec 24 08:02:48 2018
New Revision: 350055
URL: http://llvm.org/viewvc/llvm-project?rev=350055&view=rev
Log:
[HWASAN] Instrument memorty intrinsics by default
Differential revision: https://reviews.llvm.org/D55926
Modified:
llvm/trunk/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
llvm/trunk/test/Instrumentation/HWAddressSanitizer/mem-intrinsics.ll
Modified: llvm/trunk/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp?rev=350055&r1=350054&r2=350055&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp Mon Dec 24 08:02:48 2018
@@ -155,7 +155,7 @@ static cl::opt<bool>
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
Modified: llvm/trunk/test/Instrumentation/HWAddressSanitizer/mem-intrinsics.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Instrumentation/HWAddressSanitizer/mem-intrinsics.ll?rev=350055&r1=350054&r2=350055&view=diff
==============================================================================
--- llvm/trunk/test/Instrumentation/HWAddressSanitizer/mem-intrinsics.ll (original)
+++ llvm/trunk/test/Instrumentation/HWAddressSanitizer/mem-intrinsics.ll Mon Dec 24 08:02:48 2018
@@ -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"
More information about the llvm-commits
mailing list