Skip to content

Commit

Permalink
Update Enzyme.cpp (#2159)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Nov 7, 2024
1 parent 342057e commit a78b79c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enzyme/Enzyme/Enzyme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2461,7 +2461,7 @@ class EnzymeBase {
CI->addAttribute(AttributeList::FunctionIndex, Attribute::ReadNone);
#endif
}
if (Fn->getName().contains("strcmp")) {
if (getFuncName(Fn) == "strcmp") {
Fn->addParamAttr(0, Attribute::ReadOnly);
Fn->addParamAttr(1, Attribute::ReadOnly);
#if LLVM_VERSION_MAJOR >= 16
Expand Down

0 comments on commit a78b79c

Please sign in to comment.