Skip to content

Commit 80b7661

Browse files
committed
Check prefix
1 parent fc90c3d commit 80b7661

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/Target/AArch64/Utils/AArch64SMEAttributes.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ SMEAttrs::SMEAttrs(const AttributeList &Attrs) {
8181

8282
void SMEAttrs::addKnownFunctionAttrs(StringRef FuncName,
8383
const TargetLowering &TLI) {
84+
// Skip functions that do not appear to be builtins (starting with "__").
85+
if (!FuncName.starts_with('_'))
86+
return;
87+
8488
struct SMERoutineAttr {
8589
RTLIB::Libcall LC{RTLIB::UNKNOWN_LIBCALL};
8690
unsigned Attrs{SMEAttrs::Normal};

0 commit comments

Comments
 (0)