Skip to content

Commit 67c1872

Browse files
committed
[clang][Interp] Return false from visitExpr() if allocateLocal failed
1 parent c4a9a37 commit 67c1872

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/AST/Interp/ByteCodeExprGen.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2861,7 +2861,8 @@ bool ByteCodeExprGen<Emitter>::visitExpr(const Expr *E) {
28612861
return this->emitRetValue(E) && RootScope.destroyLocals();
28622862
}
28632863

2864-
return RootScope.destroyLocals();
2864+
RootScope.destroyLocals();
2865+
return false;
28652866
}
28662867

28672868
/// Toplevel visitDecl().

0 commit comments

Comments
 (0)