Mercurial > hg > CbC > CbC_llvm
view llvm/test/Instrumentation/AddressSanitizer/do-not-instrument-sanitizers.ll @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
line wrap: on
line source
; This test checks that we are not instrumenting sanitizer code. ; RUN: opt < %s -asan -asan-module -enable-new-pm=0 -S | FileCheck %s ; RUN: opt < %s -passes='asan-pipeline' -S | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" ; Function Attrs: nounwind uwtable define void @__asan_default_options(i32* %a) sanitize_address { entry: %tmp1 = load i32, i32* %a, align 4 %tmp2 = add i32 %tmp1, 1 store i32 %tmp2, i32* %a, align 4 ret void } ; CHECK-NOT: call void @__asan_report_load ; Function Attrs: nounwind uwtable define i32 @main() #0 { entry: ret i32 0 } ; CHECK: declare void @__asan_init()