Commit 5b239db
committed
[AutoUpgrade] Add Default Case to Avoid Path to Assertion (NFCI)
We have been running Polyspace on the LLVM codebase and the following
path to assertion was flagged.
1 - Assignment to local pointer 'NewCall' - AutoUpgrade.cpp[4443, 13]
2 - Entering switch case - AutoUpgrade.cpp[4516, 3]
3 - Not entering if statement (if-condition false) - AutoUpgrade.cpp[4519, 5]
4 - Not entering if statement (if-condition false) - AutoUpgrade.cpp[4523, 5]
5 - Not entering if statement (if-condition false) - AutoUpgrade.cpp[4548, 12]
6 - Assertion - AutoUpgrade.cpp[4896, 3]
This updated adds a Default Case to avoid the path and removes an unnecessary
else after return.1 parent bcf0f8d commit 5b239db
1 file changed
+6
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4545 | 4545 | | |
4546 | 4546 | | |
4547 | 4547 | | |
| 4548 | + | |
| 4549 | + | |
| 4550 | + | |
4548 | 4551 | | |
4549 | 4552 | | |
4550 | 4553 | | |
| |||
5015 | 5018 | | |
5016 | 5019 | | |
5017 | 5020 | | |
5018 | | - | |
5019 | | - | |
5020 | | - | |
5021 | | - | |
5022 | | - | |
| 5021 | + | |
| 5022 | + | |
| 5023 | + | |
5023 | 5024 | | |
5024 | 5025 | | |
5025 | 5026 | | |
| |||
0 commit comments