diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-01-27 15:01:22 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-01-27 15:01:22 +0000 |
commit | 3fdfc7b1b34b27ebb33d1c18e928b94ca9efbcd0 (patch) | |
tree | 28869e092a63e60ff93c6ebdbafbb149c08b9862 /llvm/test/Instrumentation/SanitizerCoverage/coverage.ll | |
parent | 12207fab7851ed15c2449e9ec2b3dce19a3008e6 (diff) | |
download | bcm5719-llvm-3fdfc7b1b34b27ebb33d1c18e928b94ca9efbcd0.tar.gz bcm5719-llvm-3fdfc7b1b34b27ebb33d1c18e928b94ca9efbcd0.zip |
[sancov] Fix unspecified constructor order between sancov and asan.
Sanitizer coverage constructor must run after asan constructor (for each DSO).
Bump constructor priority to guarantee that.
llvm-svn: 227195
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 77e781e5474..ae93a0b2e39 100644 --- a/llvm/test/Instrumentation/SanitizerCoverage/coverage.ll +++ b/llvm/test/Instrumentation/SanitizerCoverage/coverage.ll @@ -29,6 +29,10 @@ entry: ret void } +; CHECK0-NOT: @llvm.global_ctors = {{.*}}{ i32 2, void ()* @sancov.module_ctor } +; CHECK1: @llvm.global_ctors = {{.*}}{ i32 2, void ()* @sancov.module_ctor } +; CHECK2: @llvm.global_ctors = {{.*}}{ i32 2, void ()* @sancov.module_ctor } + ; CHECK0-NOT: call void @__sanitizer_cov( ; CHECK0-NOT: call void @__sanitizer_cov_module_init( |