diff options
| author | Dillon Amburgey <dillona@dillona.com> | 2025-07-08 06:18:18 -0500 |
|---|---|---|
| committer | Dillon Amburgey <dillona@dillona.com> | 2025-07-08 06:24:50 -0500 |
| commit | b2299e20b2c2a25254fb554ccc59a8b60fdc25e0 (patch) | |
| tree | 9e1475801959742db6cd4a1671c8cb9dd53e8309 /compiler/rustc_codegen_llvm/src | |
| parent | 45b80ac21a454d343833aad763ef604510c88375 (diff) | |
| download | rust-b2299e20b2c2a25254fb554ccc59a8b60fdc25e0.tar.gz rust-b2299e20b2c2a25254fb554ccc59a8b60fdc25e0.zip | |
fix: correct assertion to check for 'noinline' attribute presence before removal
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/back/lto.rs | 2 |
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'" ); |
