tbaeder marked an inline comment as done. tbaeder added inline comments.
================ Comment at: clang/lib/AST/Interp/ByteCodeExprGen.cpp:1158 + + if (DiscardResult && !T) { + // If we need to discard the return value but the function returns its ---------------- shafik wrote: > Could you alternatively use `Func->hasRVO()`? I don't have to, but now that you mentioned it, that's much better since we won' t allocate the local for void return types... thanks! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D136457/new/ https://reviews.llvm.org/D136457 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits