aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorTomas Matheson <tomas.matheson@arm.com>2020-12-07 17:14:06 +0000
committerTomas Matheson <tomas.matheson@arm.com>2021-01-28 09:19:19 +0000
commit01b9e613c28b833327ab4de93d0638a5c8d3514f (patch)
treee1856985c1f748ca68c867d512d1e90321708791 /clang/lib/Frontend/CompilerInvocation.cpp
parentfc4e8a3e8b4aa9a8aaa9cb8ebc44c7fda465648b (diff)
downloadllvm-01b9e613c28b833327ab4de93d0638a5c8d3514f.zip
llvm-01b9e613c28b833327ab4de93d0638a5c8d3514f.tar.gz
llvm-01b9e613c28b833327ab4de93d0638a5c8d3514f.tar.bz2
[Clang][Codegen] Truncate initializers of union bitfield members
If an initial value is given for a bitfield that does not fit in the bitfield, the value should be truncated. Constant folding for expressions did not account for this truncation in the case of union member functions, despite a warning being emitted. In some contexts, evaluation of expressions was not enabled unless C++11, ROPI or RWPI was enabled. Differential Revision: https://reviews.llvm.org/D93101
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions