diff options
author | Adrian Prantl <aprantl@apple.com> | 2021-02-11 12:57:04 -0800 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2021-02-12 16:12:31 -0800 |
commit | 057efa9916cdc354ef4653bcd128a578cc43125e (patch) | |
tree | 2b71ac656745bb4ed134207cd1c63e914c543a52 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 532d4bf025442cb1357789bf6d9941bb9c5219c6 (diff) | |
download | llvm-057efa9916cdc354ef4653bcd128a578cc43125e.zip llvm-057efa9916cdc354ef4653bcd128a578cc43125e.tar.gz llvm-057efa9916cdc354ef4653bcd128a578cc43125e.tar.bz2 |
Make the error condition in Value::ValueType explicit (NFC)
The comment for ValueType claims that all values <1 are errors, but
not all switch statements take this into account. This patch
introduces an explicit Error case and deletes all default: cases, so
we get warned about incomplete switch coverage.
https://reviews.llvm.org/D96537
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions