Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes for switch statements on enums (iree-org#19140)
* Adds a missing `return`, to fix the GCC error flagged here: https://github.com/iree-org/iree/pull/19099/files/ab2aa4c5e9487c5f51effdc0d123c2f369dc9c41#r1840709707 * Adds some assertions on these error-case returns which are reachable but would only be reached if there is a bug in our program (as opposed to being triggerable by user input). * Drops some comments erroneously suggesting that it's GCC being difficult. Here, GCC is right and Clang is having a false-negative bug: llvm/llvm-project#115345 * Drops a redundant `return` after a `default: return`. Signed-off-by: Benoit Jacob <[email protected]>
- Loading branch information