[llvm] r240709 - DAGCombiner: Use pop_back_val()

Matt Arsenault Matthew.Arsenault at amd.com
Thu Jun 25 15:15:06 PDT 2015


Author: arsenm
Date: Thu Jun 25 17:15:05 2015
New Revision: 240709

URL: http://llvm.org/viewvc/llvm-project?rev=240709&view=rev
Log:
DAGCombiner: Use pop_back_val()

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=240709&r1=240708&r2=240709&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Thu Jun 25 17:15:05 2015
@@ -13915,8 +13915,7 @@ void DAGCombiner::GatherAllAliases(SDNod
   // 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





More information about the llvm-commits mailing list