Skip to content

Commit 0afb18c

Browse files
Allow __builtin_ prefixes
1 parent 7572c21 commit 0afb18c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/lib/Basic/Builtins.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ static bool isSymbolAvailableInC89(const llvm::StringTable &Strings,
142142

143143
auto NameStr = Strings[BuiltinInfo.Offsets.Name];
144144

145+
if(NameStr.starts_with("__builtin_")) {
146+
return true;
147+
}
148+
145149
// FIXME: add other C89 symbols here
146150
if (NameStr == "log") {
147151
return true;

0 commit comments

Comments
 (0)