File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ static bool isSymbolAvailableInC89(const llvm::StringTable &Strings,
142142
143143 auto NameStr = Strings[BuiltinInfo.Offsets .Name ];
144144
145- if (NameStr.starts_with (" __builtin_" ) || NameStr. starts_with ( " __arm " ) ) {
145+ if (NameStr.starts_with (" __builtin_" )) {
146146 return true ;
147147 }
148148
@@ -167,7 +167,8 @@ static bool builtinIsSupported(const llvm::StringTable &Strings,
167167 if (!LangOpts.Coroutines && (BuiltinInfo.Langs & COR_LANG))
168168 return false ;
169169 bool isC89 = /* C89*/ LangOpts.LangStd == LangStandard::lang_c89;
170- if (isC89 && !isSymbolAvailableInC89 (Strings, BuiltinInfo)) {
170+ if (isC89 && BuiltinInfo.Header .ID != BuiltinInfo.Header .NO_HEADER &&
171+ !isSymbolAvailableInC89 (Strings, BuiltinInfo)) {
171172 return false ;
172173 }
173174 /* MathBuiltins Unsupported */
You can’t perform that action at this time.
0 commit comments