diff options
-rw-r--r-- | include/llvm/Instructions.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 5904043cc6..f94d8448d3 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -2732,8 +2732,7 @@ public: Self operator++() { // Check index correctness after increment. // Note: Index == getNumCases() means end(). - unsigned NumCases = SI->getNumCases(); - assert(Index+1 <= NumCases && "Index out the number of cases."); + assert(Index+1 <= SI->getNumCases() && "Index out the number of cases."); ++Index; if (Index == 0) SubsetIt = SI->TheSubsets.begin(); |