about summary refs log tree commit diff
path: root/src/librustc_trans/attributes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc_trans/attributes.rs')
-rw-r--r--src/librustc_trans/attributes.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/librustc_trans/attributes.rs b/src/librustc_trans/attributes.rs
index df78ccdd229..f53c1e84f6e 100644
--- a/src/librustc_trans/attributes.rs
+++ b/src/librustc_trans/attributes.rs
@@ -92,6 +92,11 @@ pub fn set_probestack(cx: &CodegenCx, llfn: ValueRef) {
         _ => {}
     }
 
+    // probestack doesn't play nice either with pgo-gen.
+    if cx.sess().opts.cg.pgo_gen.is_some() {
+        return;
+    }
+
     // Flag our internal `__rust_probestack` function as the stack probe symbol.
     // This is defined in the `compiler-builtins` crate for each architecture.
     llvm::AddFunctionAttrStringValue(