diff options
author | Kostya Serebryany <kcc@google.com> | 2014-12-16 21:24:15 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2014-12-16 21:24:15 +0000 |
commit | 7376294086db699ad8881cc9e0fdb18ab2e1ab0d (patch) | |
tree | 7e4d24872244b8b7ebf686f674a088e1946325d1 /llvm/test/Instrumentation/SanitizerCoverage/coverage.ll | |
parent | 92c14bb2ff85d16785140c93493d97060ffcf2e7 (diff) | |
download | bcm5719-llvm-7376294086db699ad8881cc9e0fdb18ab2e1ab0d.tar.gz bcm5719-llvm-7376294086db699ad8881cc9e0fdb18ab2e1ab0d.zip |
[sanitizer] prevent function call merging for sanitizer-coverage callbacks
llvm-svn: 224372
Diffstat (limited to 'llvm/test/Instrumentation/SanitizerCoverage/coverage.ll')
-rw-r--r-- | llvm/test/Instrumentation/SanitizerCoverage/coverage.ll | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/Instrumentation/SanitizerCoverage/coverage.ll b/llvm/test/Instrumentation/SanitizerCoverage/coverage.ll index aa3ba5c7202..68e7fc0ef32 100644 --- a/llvm/test/Instrumentation/SanitizerCoverage/coverage.ll +++ b/llvm/test/Instrumentation/SanitizerCoverage/coverage.ll @@ -37,6 +37,7 @@ entry: ; CHECK1: %1 = icmp eq i8 0, %0 ; CHECK1: br i1 %1, label %2, label %3 ; CHECK1: call void @__sanitizer_cov(i8*{{.*}}) +; CHECK1: call void asm sideeffect "", ""() ; CHECK1-NOT: call void @__sanitizer_cov ; CHECK1: ret void @@ -48,8 +49,11 @@ entry: ; CHECK2-LABEL: define void @foo ; CHECK2: call void @__sanitizer_cov +; CHECK2: call void asm sideeffect "", ""() ; CHECK2: call void @__sanitizer_cov +; CHECK2: call void asm sideeffect "", ""() ; CHECK2: call void @__sanitizer_cov +; CHECK2: call void asm sideeffect "", ""() ; CHECK2-NOT: call void @__sanitizer_cov ; CHECK2: ret void |