[all-commits] [llvm/llvm-project] 88abd5: [clang][Interp] Allow evaluating standalone comple...
Timm Baeder via All-commits
all-commits at lists.llvm.org
Thu Dec 14 06:24:12 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 88abd530ef8e66ba4275146ffba028aa8923bf7f
https://github.com/llvm/llvm-project/commit/88abd530ef8e66ba4275146ffba028aa8923bf7f
Author: Timm Bäder <tbaeder at redhat.com>
Date: 2023-12-14 (Thu, 14 Dec 2023)
Changed paths:
M clang/lib/AST/Interp/ByteCodeExprGen.cpp
M clang/test/AST/Interp/complex.cpp
Log Message:
-----------
[clang][Interp] Allow evaluating standalone complex expressions
We reach visitExpr() when evaluating standalone expressions. However,
the RetValue() code path was unused before, because we never reach it,
even with structs or arrays.
RetValue expects a pointer on the stack it can take apart to return an
APValue, so provide it with one.
Differential Revision: https://reviews.llvm.org/D150661
More information about the All-commits
mailing list