[all-commits] [llvm/llvm-project] a52c0c: [clang][Interp] Lazily visit constant locals in C++
Timm Baeder via All-commits
all-commits at lists.llvm.org
Fri Feb 16 03:49:25 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a52c0c770056e040390839e753dbbaccbf4d63c4
https://github.com/llvm/llvm-project/commit/a52c0c770056e040390839e753dbbaccbf4d63c4
Author: Timm Bäder <tbaeder at redhat.com>
Date: 2024-02-16 (Fri, 16 Feb 2024)
Changed paths:
M clang/lib/AST/Interp/ByteCodeExprGen.cpp
M clang/test/AST/Interp/arrays.cpp
Log Message:
-----------
[clang][Interp] Lazily visit constant locals in C++
While we _do_ get them registered via visitInitializer(), they
are still local, so gone on the next call to e.g. evaluateAsRValue().
Visit them lazily, similarly like we do in C.
More information about the All-commits
mailing list