From: Kaelyn Uhrain Date: Fri, 22 Jun 2012 17:18:15 +0000 (+0000) Subject: Remove a variable that is unused when assertions aren't enabled. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=35ac4b0c45dba62f59ebceddd6cd4605a27857f8;p=oota-llvm.git Remove a variable that is unused when assertions aren't enabled. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159011 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 5904043cc68..f94d8448d36 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();