[all-commits] [llvm/llvm-project] 9022f4: [clang][Interp] Only evaluate the source array ini...
isuckatcs via All-commits
all-commits at lists.llvm.org
Mon Oct 23 08:52:41 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9022f402120b4e55ec1201c16f8f6d2388498e1d
https://github.com/llvm/llvm-project/commit/9022f402120b4e55ec1201c16f8f6d2388498e1d
Author: isuckatcs <65320245+isuckatcs at users.noreply.github.com>
Date: 2023-10-23 (Mon, 23 Oct 2023)
Changed paths:
M clang/lib/AST/Interp/ByteCodeExprGen.cpp
M clang/test/AST/Interp/arrays.cpp
M clang/test/AST/Interp/cxx20.cpp
Log Message:
-----------
[clang][Interp] Only evaluate the source array initialization of an `ArrayInitLoopExpr` once (#68039)
This patch implements an `OpaqueValueExpr` caching functionality in `Interp`
by storing the result of the expression in a local variable.
More information about the All-commits
mailing list