From: Daniel Jasper Date: Thu, 30 Apr 2015 08:51:13 +0000 (+0000) Subject: Inline local variable to silence unused warning. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=40838f84f48d9e0bded86643d7d445db5438d6f5;p=oota-llvm.git Inline local variable to silence unused warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236212 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 1c14d4d8d5f..5b6efe034d7 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -7983,8 +7983,7 @@ void SelectionDAGBuilder::splitWorkItem(SwitchWorkList &WorkList, 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