efriedma added a comment.
This approach looks fine.
================
Comment at: clang/lib/CodeGen/CGCall.cpp:5781
// If the value is offset in memory, apply the offset now.
+ if (!isEmptyRecord(getContext(), RetTy, true)) {
----------------
The isEmptyRecord call could use a comment briefly explaining that empty
records can overlap with other data.
The existing comment about the offset probably belongs inside the if statement.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157332/new/
https://reviews.llvm.org/D157332
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits