Skip to content

Commit

Permalink
[clang][Interp] Return false from visitExpr() if allocateLocal failed
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaederr committed May 13, 2024
1 parent c4a9a37 commit 67c1872
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clang/lib/AST/Interp/ByteCodeExprGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2861,7 +2861,8 @@ bool ByteCodeExprGen<Emitter>::visitExpr(const Expr *E) {
return this->emitRetValue(E) && RootScope.destroyLocals();
}

return RootScope.destroyLocals();
RootScope.destroyLocals();
return false;
}

/// Toplevel visitDecl().
Expand Down

0 comments on commit 67c1872

Please sign in to comment.