aboutsummaryrefslogtreecommitdiffstats
path: root/test/Instrumentation/AddressSanitizer/test64.ll
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2012-01-24 19:34:43 +0000
committerKostya Serebryany <kcc@google.com>2012-01-24 19:34:43 +0000
commit0307b9a88574d7e54459181afaa656ac92971847 (patch)
tree880ec66a87f2777c0f0a9771c83c934388598512 /test/Instrumentation/AddressSanitizer/test64.ll
parent88a54de799240d5de2e79dfff4671ad5653e7ceb (diff)
downloadexternal_llvm-0307b9a88574d7e54459181afaa656ac92971847.zip
external_llvm-0307b9a88574d7e54459181afaa656ac92971847.tar.gz
external_llvm-0307b9a88574d7e54459181afaa656ac92971847.tar.bz2
[asan] enable asan only for the functions that have Attribute::AddressSafety
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148846 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Instrumentation/AddressSanitizer/test64.ll')
-rw-r--r--test/Instrumentation/AddressSanitizer/test64.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Instrumentation/AddressSanitizer/test64.ll b/test/Instrumentation/AddressSanitizer/test64.ll
index e26fb3d..fc27de9 100644
--- a/test/Instrumentation/AddressSanitizer/test64.ll
+++ b/test/Instrumentation/AddressSanitizer/test64.ll
@@ -1,7 +1,7 @@
; RUN: opt < %s -asan -S | FileCheck %s
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
target triple = "x86_64-unknown-linux-gnu"
-define i32 @read_4_bytes(i32* %a) {
+define i32 @read_4_bytes(i32* %a) address_safety {
entry:
%tmp1 = load i32* %a, align 4
ret i32 %tmp1