summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2015-06-25 22:15:05 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2015-06-25 22:15:05 +0000
commitf735cab98627922fab3dbb0c970e988af73e3b3a (patch)
tree56c249d89807dae80b66d37a9e9f9beac40cb17f /llvm/lib
parentdbb6bd334515b3a84d7c7a12a52dd785d3d439cd (diff)
downloadbcm5719-llvm-f735cab98627922fab3dbb0c970e988af73e3b3a.tar.gz
bcm5719-llvm-f735cab98627922fab3dbb0c970e988af73e3b3a.zip
DAGCombiner: Use pop_back_val()
llvm-svn: 240709
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 66dada4ec15..8e0e0fe2822 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud