[PATCH] D136457: [clang][Interp] Fix discarding non-primitive function call return values

Shafik Yaghmour via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 24 14:13:20 PDT 2022


shafik 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
----------------
Could you alternatively use `Func->hasRVO()`? 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136457/new/

https://reviews.llvm.org/D136457



More information about the cfe-commits mailing list