We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbe4855 commit f8b263eCopy full SHA for f8b263e
clang/lib/AST/ASTContext.cpp
@@ -11856,10 +11856,11 @@ QualType ASTContext::GetBuiltinType(unsigned Id,
11856
"'.' should only occur at end of builtin type list!");
11857
11858
bool Variadic = (TypeStr[0] == '.');
11859
-
+ bool IsCheriLibcall = Id != Builtin::BIsetjmp && Id != Builtin::BIlongjmp;
11860
+ IsCheriLibcall &= Target->getTargetOpts().ABI != "cheriot-baremetal";
11861
FunctionType::ExtInfo EI(getDefaultCallingConvention(
11862
Variadic, /*IsCXXMethod=*/false, /*IsBuiltin=*/true,
- /*IsLibcall*/ Target->getTargetOpts().ABI != "cheriot-baremetal"));
11863
+ /*IsLibcall*/ IsCheriLibcall));
11864
if (BuiltinInfo.isNoReturn(Id)) EI = EI.withNoReturn(true);
11865
11866
0 commit comments