[clang] [APINotes] Add SWIFT_RETURNS_(UN)RETAINED support to APINotes (PR #118938)
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 6 06:18:01 PST 2024
================
@@ -1093,6 +1093,7 @@ unsigned getFunctionInfoSize(const FunctionInfo &FI) {
for (const auto &P : FI.Params)
size += getParamInfoSize(P);
size += sizeof(uint16_t) + FI.ResultType.size();
+ size += FI.SwiftReturnOwnership.size();
----------------
Xazax-hun wrote:
Is this correct? We also write the length of the string, so not sure if that is accounted for. This problem would go away if we switched to an enum.
https://github.com/llvm/llvm-project/pull/118938
More information about the cfe-commits
mailing list