aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/WasmObjectFile.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2024-02-08 14:27:14 -0800
committerGitHub <noreply@github.com>2024-02-08 14:27:14 -0800
commit3c42e10afdc518f6d8be5620289ef0da0bf03c5f (patch)
tree6f62ac55f8e2c797adea52e0056c78d20cd92794 /llvm/lib/Object/WasmObjectFile.cpp
parent7b5a9bb8f0f58b188655252f74b0941512e44389 (diff)
downloadllvm-3c42e10afdc518f6d8be5620289ef0da0bf03c5f.zip
llvm-3c42e10afdc518f6d8be5620289ef0da0bf03c5f.tar.gz
llvm-3c42e10afdc518f6d8be5620289ef0da0bf03c5f.tar.bz2
Consider aggregate bases when checking if an InitListExpr is constant (#80519)
This code was correct as written prior to C++17, which allowed bases to appear in the initializer list. This was observable by creating non-constant aggregate initialization at file scope in a compound literal, but since that behavior will change soon if we implement support for dynamic initialization, I also added a unit test for `isConstantInitializer`. This fixes at least one part of issue #80510 . --------- Co-authored-by: Aaron Ballman <aaron@aaronballman.com>
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions