From: Matt Arsenault Date: Thu, 25 Jun 2015 22:15:05 +0000 (+0000) Subject: DAGCombiner: Use pop_back_val() X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5bf34efcce211e076411a9df8c815ab449560c2b;p=oota-llvm.git DAGCombiner: Use pop_back_val() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240709 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 66dada4ec15..8e0e0fe2822 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -13915,8 +13915,7 @@ void DAGCombiner::GatherAllAliases(SDNode *N, SDValue OriginalChain, // aliases list. If not, then continue up the chain looking for the next // candidate. while (!Chains.empty()) { - SDValue Chain = Chains.back(); - Chains.pop_back(); + SDValue Chain = Chains.pop_back_val(); // For TokenFactor nodes, look at each operand and only continue up the // chain until we find two aliases. If we've seen two aliases, assume we'll