[all-commits] [llvm/llvm-project] b4fc14: [clang][Interp] Fix ArrayInitLoop common expr life...
Timm Baeder via All-commits
all-commits at lists.llvm.org
Tue Oct 24 03:21:06 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b4fc1418d9765bfb605387efc70ecf233d27b383
https://github.com/llvm/llvm-project/commit/b4fc1418d9765bfb605387efc70ecf233d27b383
Author: Timm Bäder <tbaeder at redhat.com>
Date: 2023-10-24 (Tue, 24 Oct 2023)
Changed paths:
M clang/lib/AST/Interp/ByteCodeExprGen.cpp
M clang/test/AST/Interp/cxx20.cpp
Log Message:
-----------
[clang][Interp] Fix ArrayInitLoop common expr life time
The local variable needs to survive for all the interations of the
ArrayInitLoopExpr. So, visit it explicitly before we iterate.
More information about the All-commits
mailing list