fix: correct assertion to check for 'noinline' attribute presence before removal
This commit is contained in:
parent
45b80ac21a
commit
b2299e20b2
1 changed files with 1 additions and 1 deletions
|
|
@ -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'"
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue