[clang] [clang] Handle CC attrs for UEFI (PR #138935)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Wed May 7 12:16:19 PDT 2025
================
@@ -581,8 +581,11 @@ CodeGenTypes::arrangeObjCMessageSendSignature(const ObjCMethodDecl *MD,
}
FunctionType::ExtInfo einfo;
- bool IsWindows = getContext().getTargetInfo().getTriple().isOSWindows();
- einfo = einfo.withCallingConv(getCallingConventionForDecl(MD, IsWindows));
+ bool IsTargetDefaultMSABI =
+ getContext().getTargetInfo().getTriple().isOSWindows() ||
+ getContext().getTargetInfo().getTriple().isUEFI();
----------------
efriedma-quic wrote:
We have Triple::isOSWindowsOrUEFI(), I think; should we use it here?
https://github.com/llvm/llvm-project/pull/138935
More information about the cfe-commits
mailing list