Remove a variable that is unused when assertions aren't enabled.
authorKaelyn Uhrain <rikka@google.com>
Fri, 22 Jun 2012 17:18:15 +0000 (17:18 +0000)
committerKaelyn Uhrain <rikka@google.com>
Fri, 22 Jun 2012 17:18:15 +0000 (17:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159011 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Instructions.h

index 5904043cc684f18d221a0cd145b575025034396d..f94d8448d361c2e43b7484f72b6e91e47f7ede1e 100644 (file)
@@ -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();