Skip to content

Commit

Permalink
Fix LLVM16 build
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Oct 10, 2023
1 parent 3194829 commit 070ba6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enzyme/Enzyme/EnzymeLogic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1744,7 +1744,7 @@ void clearFunctionAttributes(Function *f) {
}
for (auto attr : {"enzyme_inactive"}) {
#if LLVM_VERSION_MAJOR >= 14
if (f->getAttributes().hasRetAttribute(attr)) {
if (f->getAttributes().hasRetAttr(attr)) {
f->removeRetAttr(attr);
}
#else
Expand Down Expand Up @@ -2578,7 +2578,7 @@ const AugmentedReturn &EnzymeLogic::CreateAugmentedPrimal(
}
for (auto attr : {"enzyme_inactive"}) {
#if LLVM_VERSION_MAJOR >= 14
if (gutils->newFunc->getAttributes().hasRetAttribute(attr)) {
if (gutils->newFunc->getAttributes().hasRetAttr(attr)) {
gutils->newFunc->removeRetAttr(attr);
}
#else
Expand Down

0 comments on commit 070ba6f

Please sign in to comment.