[llvm-commits] [llvm] r159011 - /llvm/trunk/include/llvm/Instructions.h
Kaelyn Uhrain
rikka at google.com
Fri Jun 22 10:18:15 PDT 2012
Author: rikka
Date: Fri Jun 22 12:18:15 2012
New Revision: 159011
URL: http://llvm.org/viewvc/llvm-project?rev=159011&view=rev
Log:
Remove a variable that is unused when assertions aren't enabled.
Modified:
llvm/trunk/include/llvm/Instructions.h
Modified: llvm/trunk/include/llvm/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Instructions.h?rev=159011&r1=159010&r2=159011&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Instructions.h (original)
+++ llvm/trunk/include/llvm/Instructions.h Fri Jun 22 12:18:15 2012
@@ -2732,8 +2732,7 @@
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();
More information about the llvm-commits
mailing list