about summary refs log tree commit diff
path: root/src/test/codegen
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2021-07-19 17:14:58 +0200
committerMichael Woerister <michaelwoerister@posteo>2021-07-20 11:41:51 +0200
commitd56c02d7e9d2ad9b563ad3695c65b976f1099ec7 (patch)
tree3d9085a57de1f951bbf927a1b53d2a0f2f4aa9ca /src/test/codegen
parent8df945c4717ffaf923b57bf30c473df6fc98bc85 (diff)
downloadrust-d56c02d7e9d2ad9b563ad3695c65b976f1099ec7.tar.gz
rust-d56c02d7e9d2ad9b563ad3695c65b976f1099ec7.zip
Allow combining -Cprofile-generate and -Cpanic=unwind when targeting
MSVC.

The LLVM limitation that previously prevented this has been fixed in LLVM
9 which is older than the oldest LLVM version we currently support.

See https://github.com/rust-lang/rust/issues/61002.
Diffstat (limited to 'src/test/codegen')
-rw-r--r--src/test/codegen/pgo-instrumentation.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/codegen/pgo-instrumentation.rs b/src/test/codegen/pgo-instrumentation.rs
index c085f3c829e..05c2d2fc0d8 100644
--- a/src/test/codegen/pgo-instrumentation.rs
+++ b/src/test/codegen/pgo-instrumentation.rs
@@ -1,8 +1,7 @@
 // Test that `-Cprofile-generate` creates expected instrumentation artifacts in LLVM IR.
-// Compiling with `-Cpanic=abort` because PGO+unwinding isn't supported on all platforms.
 
 // needs-profiler-support
-// compile-flags: -Cprofile-generate -Ccodegen-units=1 -Cpanic=abort
+// compile-flags: -Cprofile-generate -Ccodegen-units=1
 
 // CHECK: @__llvm_profile_raw_version =
 // CHECK-DAG: @__profc_{{.*}}pgo_instrumentation{{.*}}some_function{{.*}} = {{.*}}global