diff options
| author | Daniel Jasper <djasper@google.com> | 2015-04-30 08:51:13 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2015-04-30 08:51:13 +0000 |
| commit | 0366cd23ac43bec9da4ed3981eaa69af1d64e0b7 (patch) | |
| tree | 7a2f6649e18db30571a19154a8c45ea16f02b959 /llvm/lib/CodeGen | |
| parent | e1eda8a9e6064f8bf76ef618b6a1e33d61822a3b (diff) | |
| download | bcm5719-llvm-0366cd23ac43bec9da4ed3981eaa69af1d64e0b7.tar.gz bcm5719-llvm-0366cd23ac43bec9da4ed3981eaa69af1d64e0b7.zip | |
Inline local variable to silence unused warning.
llvm-svn: 236212
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 1c14d4d8d5f..5b6efe034d7 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/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 |

