================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits