[clang][Interp][NFC] Use existing local variable
authorTimm Bäder <tbaeder@redhat.com>
Sun, 23 Jul 2023 05:20:19 +0000 (07:20 +0200)
committerTimm Bäder <tbaeder@redhat.com>
Sun, 23 Jul 2023 08:27:51 +0000 (10:27 +0200)
Instead of calling getSubExpr() again.

clang/lib/AST/Interp/ByteCodeExprGen.cpp

index b5df00e..9f3eb15 100644 (file)
@@ -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;