[llvm] r236212 - Inline local variable to silence unused warning.
Daniel Jasper
djasper at google.com
Thu Apr 30 01:51:14 PDT 2015
Author: djasper
Date: Thu Apr 30 03:51:13 2015
New Revision: 236212
URL: http://llvm.org/viewvc/llvm-project?rev=236212&view=rev
Log:
Inline local variable to silence unused warning.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp?rev=236212&r1=236211&r2=236212&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp Thu Apr 30 03:51:13 2015
@@ -7983,8 +7983,7 @@ void SelectionDAGBuilder::splitWorkItem(
assert(W.FirstCluster->Low->getValue().slt(W.LastCluster->Low->getValue()) &&
"Clusters not sorted?");
- unsigned NumClusters = W.LastCluster - W.FirstCluster + 1;
- assert(NumClusters >= 2 && "Too small to split!");
+ assert(W.LastCluster - W.FirstCluster + 1 >= 2 && "Too small to split!");
// Balance the tree based on branch weights to create a near-optimal (in terms
// of search time given key frequency) binary search tree. See e.g. Kurt
More information about the llvm-commits
mailing list