about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/back
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-07-11 19:45:23 +0200
committerGitHub <noreply@github.com>2025-07-11 19:45:23 +0200
commit7f3204f34d20e61a7581d8c9b52d00bf832a74bf (patch)
treecd79bdf3bf1cdac58c7f865d74e167b6ea1a4a3c /compiler/rustc_codegen_llvm/src/back
parentc8780fff6a1f3bda416231342fae0dde986ada39 (diff)
parentb2299e20b2c2a25254fb554ccc59a8b60fdc25e0 (diff)
downloadrust-7f3204f34d20e61a7581d8c9b52d00bf832a74bf.tar.gz
rust-7f3204f34d20e61a7581d8c9b52d00bf832a74bf.zip
Rollup merge of #143633 - dillona:noinline-assert, r=fee1-dead
fix: correct assertion to check for 'noinline' attribute presence before removal
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back')
-rw-r--r--compiler/rustc_codegen_llvm/src/back/lto.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/lto.rs b/compiler/rustc_codegen_llvm/src/back/lto.rs
index 9c62244f3c9..74418adc43c 100644
--- a/compiler/rustc_codegen_llvm/src/back/lto.rs
+++ b/compiler/rustc_codegen_llvm/src/back/lto.rs
@@ -680,7 +680,7 @@ pub(crate) fn run_pass_manager(
             if attributes::has_string_attr(function, enzyme_marker) {
                 // Sanity check: Ensure 'noinline' is present before replacing it.
                 assert!(
-                    !attributes::has_attr(function, Function, llvm::AttributeKind::NoInline),
+                    attributes::has_attr(function, Function, llvm::AttributeKind::NoInline),
                     "Expected __enzyme function to have 'noinline' before adding 'alwaysinline'"
                 );