projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41af6ec
)
[clang][Interp][NFC] Use existing local variable
author
Timm Bäder
<tbaeder@redhat.com>
Sun, 23 Jul 2023 05:20:19 +0000
(07:20 +0200)
committer
Timm 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
patch
|
blob
|
history
diff --git
a/clang/lib/AST/Interp/ByteCodeExprGen.cpp
b/clang/lib/AST/Interp/ByteCodeExprGen.cpp
index
b5df00e
..
9f3eb15
100644
(file)
--- 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;