diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-03-03 21:26:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-03 21:26:16 +0100 |
| commit | 587ca17cdb2b6dc202389a59e2b236dd63c711a3 (patch) | |
| tree | 5c22fea42afdf5b355a065f336d2df20be80ad73 /src/test/codegen | |
| parent | 099cd7f402dd2ccec7f35c13c585c650243d018c (diff) | |
| parent | b0e288d9f1d8b0f4038bb955a68308b892d54ea3 (diff) | |
| download | rust-587ca17cdb2b6dc202389a59e2b236dd63c711a3.tar.gz rust-587ca17cdb2b6dc202389a59e2b236dd63c711a3.zip | |
Rollup merge of #69665 - tmiasko:new-pass-manager-thin-lto-opt, r=nikic
Invoke OptimizerLastEPCallbacks in PreLinkThinLTO The default ThinLTO pre-link pipeline does not include optimizer last extension points. Thus, when using the new LLVM pass manager & ThinLTO & sanitizers on any opt-level different from zero, the sanitizer function passes would be omitted from the pipeline. Add optimizer last extensions points manually to the pipeline, but guard registration with stage check in the case this behaviour changes in the future.
Diffstat (limited to 'src/test/codegen')
| -rw-r--r-- | src/test/codegen/sanitizer-recover.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/codegen/sanitizer-recover.rs b/src/test/codegen/sanitizer-recover.rs index 9a583725b0b..05b4ab5653c 100644 --- a/src/test/codegen/sanitizer-recover.rs +++ b/src/test/codegen/sanitizer-recover.rs @@ -14,8 +14,8 @@ //[MSAN-RECOVER-LTO] compile-flags: -Zsanitizer=memory -Zsanitizer-recover=memory -C lto=fat // // MSAN-NOT: @__msan_keep_going -// MSAN-RECOVER: @__msan_keep_going = weak_odr {{.*}} constant i32 1 -// MSAN-RECOVER-LTO: @__msan_keep_going = weak_odr {{.*}} constant i32 1 +// MSAN-RECOVER: @__msan_keep_going = weak_odr {{.*}}constant i32 1 +// MSAN-RECOVER-LTO: @__msan_keep_going = weak_odr {{.*}}constant i32 1 // ASAN-LABEL: define i32 @penguin( // ASAN: call void @__asan_report_load4(i64 %0) |
