[clang] a7f256f - [clang][Interp][NFC] Use delegate() once more
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 13 08:08:50 PDT 2023
Author: Timm Bäder
Date: 2023-09-13T17:08:40+02:00
New Revision: a7f256fb4c0c18fad9e654d62e0633735dddf4b8
URL: https://github.com/llvm/llvm-project/commit/a7f256fb4c0c18fad9e654d62e0633735dddf4b8
DIFF: https://github.com/llvm/llvm-project/commit/a7f256fb4c0c18fad9e654d62e0633735dddf4b8.diff
LOG: [clang][Interp][NFC] Use delegate() once more
Added:
Modified:
clang/lib/AST/Interp/ByteCodeExprGen.cpp
Removed:
################################################################################
diff --git a/clang/lib/AST/Interp/ByteCodeExprGen.cpp b/clang/lib/AST/Interp/ByteCodeExprGen.cpp
index 4f89cbec76e7930..2db71f945fb7909 100644
--- a/clang/lib/AST/Interp/ByteCodeExprGen.cpp
+++ b/clang/lib/AST/Interp/ByteCodeExprGen.cpp
@@ -2394,9 +2394,7 @@ bool ByteCodeExprGen<Emitter>::VisitUnaryOperator(const UnaryOperator *E) {
case UO_Real: // __real x
case UO_Imag: // __imag x
case UO_Extension:
- if (DiscardResult)
- return this->discard(SubExpr);
- return this->visit(SubExpr);
+ return this->delegate(SubExpr);
case UO_Coawait:
assert(false && "Unhandled opcode");
}
More information about the cfe-commits
mailing list