summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-12 17:24:29 +0000
committerChris Lattner <sabre@nondot.org>2010-11-12 17:24:29 +0000
commit64634c36dd8770ca85bf09137ce3a453dcd39b1f (patch)
treef1f5f07d353e8354d7b2bad611bf528269f532c2 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
parentde990b270d73632a834cb37e6ea50db093321aad (diff)
downloadbcm5719-llvm-64634c36dd8770ca85bf09137ce3a453dcd39b1f.tar.gz
bcm5719-llvm-64634c36dd8770ca85bf09137ce3a453dcd39b1f.zip
tidy up.
llvm-svn: 118896
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 62d2cb9a79b..e0d380b8770 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -5030,13 +5030,11 @@ void SelectionDAGBuilder::visitCall(const CallInst &I) {
!MMI.callsExternalVAFunctionWithFloatingPointArguments()) {
for (unsigned i = 0, e = I.getNumArgOperands(); i != e; ++i) {
const Type* T = I.getArgOperand(i)->getType();
- for (po_iterator<const Type*> i = po_begin(T),
- e = po_end(T);
- i != e; ++i) {
- if (i->isFloatingPointTy()) {
- MMI.setCallsExternalVAFunctionWithFloatingPointArguments(true);
- break;
- }
+ for (po_iterator<const Type*> i = po_begin(T), e = po_end(T);
+ i != e; ++i) {
+ if (!i->isFloatingPointTy()) continue;
+ MMI.setCallsExternalVAFunctionWithFloatingPointArguments(true);
+ break;
}
}
}
OpenPOWER on IntegriCloud