Skip to content

Commit 8a63133

Browse files
committed
[MetaRenamer] Use isIntrinsic() helper (NFC)
1 parent 9bd4ab7 commit 8a63133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Utils/MetaRenamer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ void MetaRename(Module &M,
159159
auto ExcludeLibFuncs = [&](Function &F) {
160160
LibFunc Tmp;
161161
StringRef Name = F.getName();
162-
return Name.starts_with("llvm.") || (!Name.empty() && Name[0] == 1) ||
162+
return F.isIntrinsic() || (!Name.empty() && Name[0] == 1) ||
163163
GetTLI(F).getLibFunc(F, Tmp) ||
164164
IsNameExcluded(Name, ExcludedFuncPrefixes);
165165
};

0 commit comments

Comments
 (0)