diff options
author | Richard Smith <richard@metafoo.co.uk> | 2019-12-16 18:26:19 -0800 |
---|---|---|
committer | Richard Smith <richard@metafoo.co.uk> | 2019-12-16 18:33:35 -0800 |
commit | eea8ba097c4a86632b88291bea51eb710f8ae4fb (patch) | |
tree | e13d3795d4009530dad4bfae7228b6c327097f11 /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | ce12a523b0e1a64cea63ba099642d7f3492a3791 (diff) | |
download | llvm-eea8ba097c4a86632b88291bea51eb710f8ae4fb.zip llvm-eea8ba097c4a86632b88291bea51eb710f8ae4fb.tar.gz llvm-eea8ba097c4a86632b88291bea51eb710f8ae4fb.tar.bz2 |
Check whether the destination is a complete type in a static_cast (or
C-style cast) to an enumeration type.
We previously forgot to check this, and happened to get away with it
(with bad diagnostics) only because we misclassified incomplete
enumeration types as not being unscoped enumeration types. This also
fixes the misclassification.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions