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 4fb7b33 commit b4c6ab6Copy full SHA for b4c6ab6
clang/lib/AST/Interp/ByteCodeExprGen.cpp
@@ -2555,10 +2555,13 @@ bool ByteCodeExprGen<Emitter>::visitExpr(const Expr *E) {
2555
// For us, that means everything we don't
2556
// have a PrimType for.
2557
if (std::optional<unsigned> LocalOffset = this->allocateLocal(E)) {
2558
- if (!this->visitLocalInitializer(E, *LocalOffset))
+ if (!this->emitGetPtrLocal(*LocalOffset, E))
2559
return false;
2560
2561
- if (!this->emitGetPtrLocal(*LocalOffset, E))
+ if (!visitInitializer(E))
2562
+ return false;
2563
+
2564
+ if (!this->emitInitPtr(E))
2565
2566
return this->emitRetValue(E);
2567
}
0 commit comments