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;


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to