From 4cadd4afa0126ff7165e8cc8d0562fea76328945 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Mon, 24 Nov 2014 18:49:53 +0000 Subject: [asan/coverage] change the way asan coverage instrumentation is done: instead of setting the guard to 1 in the generated code, pass the pointer to guard to __sanitizer_cov and set it there. No user-visible functionality change expected llvm-svn: 222675 --- llvm/test/Instrumentation/SanitizerCoverage/coverage2-dbg.ll | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/test/Instrumentation/SanitizerCoverage/coverage2-dbg.ll') diff --git a/llvm/test/Instrumentation/SanitizerCoverage/coverage2-dbg.ll b/llvm/test/Instrumentation/SanitizerCoverage/coverage2-dbg.ll index 9b263293bf4..f351fe15d42 100644 --- a/llvm/test/Instrumentation/SanitizerCoverage/coverage2-dbg.ll +++ b/llvm/test/Instrumentation/SanitizerCoverage/coverage2-dbg.ll @@ -17,9 +17,9 @@ target triple = "x86_64-unknown-linux-gnu" ; Check that __sanitizer_cov call has !dgb pointing to the beginning ; of appropriate basic blocks. ; CHECK-LABEL:_Z3fooPi -; CHECK: call void @__sanitizer_cov(), !dbg [[A:!.*]] -; CHECK: call void @__sanitizer_cov(), !dbg [[B:!.*]] -; CHECK: call void @__sanitizer_cov(), !dbg [[C:!.*]] +; CHECK: call void @__sanitizer_cov(i8*{{.*}}), !dbg [[A:!.*]] +; CHECK: call void @__sanitizer_cov(i8*{{.*}}), !dbg [[B:!.*]] +; CHECK: call void @__sanitizer_cov(i8*{{.*}}), !dbg [[C:!.*]] ; CHECK: ret void ; CHECK: [[A]] = metadata !{i32 1, i32 0, metadata !{{.*}}, null} ; CHECK: [[B]] = metadata !{i32 3, i32 5, metadata !{{.*}}, null} -- cgit v1.2.3