Skip to content

Commit e932509

Browse files
authored
Rollup merge of #143633 - dillona:noinline-assert, r=fee1-dead
fix: correct assertion to check for 'noinline' attribute presence before removal
2 parents 02df24f + b2299e2 commit e932509

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_codegen_llvm/src/back

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_llvm/src/back/lto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ pub(crate) fn run_pass_manager(
680680
if attributes::has_string_attr(function, enzyme_marker) {
681681
// Sanity check: Ensure 'noinline' is present before replacing it.
682682
assert!(
683-
!attributes::has_attr(function, Function, llvm::AttributeKind::NoInline),
683+
attributes::has_attr(function, Function, llvm::AttributeKind::NoInline),
684684
"Expected __enzyme function to have 'noinline' before adding 'alwaysinline'"
685685
);
686686

0 commit comments

Comments
 (0)