commit | 65507c48ddcdf3e71c0bb0d1c85791c955e1804f | [log] [tgz] |
---|---|---|
author | Adrian Prantl <aprantl@apple.com> | Thu Feb 11 12:57:04 2021 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Feb 19 01:13:39 2021 -0800 |
tree | ed9fdfbc33176185dfd209f2e2ec0ed4d9518423 | |
parent | cf93d07f55d5c6fc4347ddedb2bff63ab1530b4c [diff] |
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 GitOrigin-RevId: 057efa9916cdc354ef4653bcd128a578cc43125e