[all-commits] [llvm/llvm-project] 65dca4: [clang][Interp] Fix tests for ignored expressions
Timm Baeder via All-commits
all-commits at lists.llvm.org
Tue Aug 1 05:59:27 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 65dca4cbcbfc5c4447207eff7d223005089e9fed
https://github.com/llvm/llvm-project/commit/65dca4cbcbfc5c4447207eff7d223005089e9fed
Author: Timm Bäder <tbaeder at redhat.com>
Date: 2023-08-01 (Tue, 01 Aug 2023)
Changed paths:
M clang/lib/AST/Interp/ByteCodeExprGen.cpp
M clang/test/AST/Interp/literals.cpp
Log Message:
-----------
[clang][Interp] Fix tests for ignored expressions
We didn't call the function explicitly in a static_assert() statement
and the checkPotentialConstantExpression() invocation quietly aborted
early because of the missing initializer for A::a.
Fix this by calling ignoredExprs() explicitly.
Differential Revision: https://reviews.llvm.org/D149965
More information about the All-commits
mailing list