We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ef085c commit eee8075Copy full SHA for eee8075
clang/lib/AST/Interp/ByteCodeExprGen.cpp
@@ -1022,8 +1022,6 @@ bool ByteCodeExprGen<Emitter>::visitArrayInitializer(const Expr *Initializer) {
1022
for (const Expr *Init : InitList->inits()) {
1023
if (std::optional<PrimType> T = classify(Init->getType())) {
1024
// Visit the primitive element like normal.
1025
- if (!this->emitDupPtr(Init))
1026
- return false;
1027
if (!this->visit(Init))
1028
return false;
1029
if (!this->emitInitElem(*T, ElementIndex, Init))
@@ -1042,9 +1040,9 @@ bool ByteCodeExprGen<Emitter>::visitArrayInitializer(const Expr *Initializer) {
1042
1040
1043
1041
if (!visitInitializer(Init))
1044
1045
- }
1046
if (!this->emitPopPtr(Init))
1047
+ }
1048
1049
++ElementIndex;
1050
}
0 commit comments