-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add default TR_ASSERTs to enum switch statements
There are some switch statements on enum classes in ControlFlowEvaluator.cpp that were previously missing default cases. While these switches are exhaustive, the way enum classes work in C++ means that technically any int can be used, so default cases are needed to make sure that such errors are caught. Signed-off-by: Ben Thomas <ben@benthomas.ca>
- Loading branch information
1 parent
bc037b1
commit d1e6b9e
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters