[clang] 25b7417 - [clang][Interp][NFC] Use existing local variable
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 23 01:28:09 PDT 2023
Author: Timm Bäder
Date: 2023-07-23T10:27:51+02:00
New Revision: 25b7417bba4efcc9058f0057f854703dd3859776
URL: https://github.com/llvm/llvm-project/commit/25b7417bba4efcc9058f0057f854703dd3859776
DIFF: https://github.com/llvm/llvm-project/commit/25b7417bba4efcc9058f0057f854703dd3859776.diff
LOG: [clang][Interp][NFC] Use existing local variable
Instead of calling getSubExpr() again.
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 b5df00e245aaf9..9f3eb158576fd8 100644
--- a/clang/lib/AST/Interp/ByteCodeExprGen.cpp
+++ b/clang/lib/AST/Interp/ByteCodeExprGen.cpp
@@ -67,7 +67,7 @@ bool ByteCodeExprGen<Emitter>::VisitCastExpr(const CastExpr *CE) {
case CK_LValueToRValue: {
return dereference(
- CE->getSubExpr(), DerefKind::Read,
+ SubExpr, DerefKind::Read,
[](PrimType) {
// Value loaded - nothing to do here.
return true;
More information about the cfe-commits
mailing list