DAGCombiner: Use pop_back_val()
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 25 Jun 2015 22:15:05 +0000 (22:15 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 25 Jun 2015 22:15:05 +0000 (22:15 +0000)
llvm-svn: 240709

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

index 66dada4..8e0e0fe 100644 (file)
@@ -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