diff options
author | Daniel Berlin <dberlin@dberlin.org> | 2015-04-15 17:41:42 +0000 |
---|---|---|
committer | Daniel Berlin <dberlin@dberlin.org> | 2015-04-15 17:41:42 +0000 |
commit | 25db4f41419460c3c5b58eceec3b37fa9a51e9c0 (patch) | |
tree | 56a9e7494b8c52e574157c0c8a54c0bba356515a /llvm/lib/CodeGen/SelectionDAG | |
parent | d0275ed8b42c93784a5fc0f13229c5636ade7f07 (diff) | |
download | bcm5719-llvm-25db4f41419460c3c5b58eceec3b37fa9a51e9c0.tar.gz bcm5719-llvm-25db4f41419460c3c5b58eceec3b37fa9a51e9c0.zip |
Add range iterators for post order and inverse post order. Use them
llvm-svn: 235026
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp index 65a67265d79..4b8ae32e9a5 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp @@ -652,8 +652,7 @@ void llvm::ComputeUsesVAFloatArgument(const CallInst &I, if (FT->isVarArg() && !MMI->usesVAFloatArgument()) { for (unsigned i = 0, e = I.getNumArgOperands(); i != e; ++i) { Type* T = I.getArgOperand(i)->getType(); - for (po_iterator<Type*> i = po_begin(T), e = po_end(T); - i != e; ++i) { + for (auto i : post_order(T)) { if (i->isFloatingPointTy()) { MMI->setUsesVAFloatArgument(true); return; |