[clang] 67c1872 - [clang][Interp] Return false from visitExpr() if allocateLocal failed
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Mon May 13 07:59:46 PDT 2024
Author: Timm Bäder
Date: 2024-05-13T16:59:30+02:00
New Revision: 67c18721eb2170a6cd7af461e16d994b1b83363a
URL: https://github.com/llvm/llvm-project/commit/67c18721eb2170a6cd7af461e16d994b1b83363a
DIFF: https://github.com/llvm/llvm-project/commit/67c18721eb2170a6cd7af461e16d994b1b83363a.diff
LOG: [clang][Interp] Return false from visitExpr() if allocateLocal failed
Added:
Modified:
clang/lib/AST/Interp/ByteCodeExprGen.cpp
Removed:
################################################################################
diff --git a/clang/lib/AST/Interp/ByteCodeExprGen.cpp b/clang/lib/AST/Interp/ByteCodeExprGen.cpp
index 630fdb60c3518..c0eae5ab20ed6 100644
--- a/clang/lib/AST/Interp/ByteCodeExprGen.cpp
+++ b/clang/lib/AST/Interp/ByteCodeExprGen.cpp
@@ -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().
More information about the cfe-commits
mailing list