summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-07-22 13:36:47 +0000
committerGabor Greif <ggreif@gmail.com>2010-07-22 13:36:47 +0000
commitdde79d8f1a8c08d386be32260f84c7a95cb356b8 (patch)
tree89cfba9be48e0310d4f489ba04b0d8990881c9ed /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
parent0525393a7954395014db6d7b1833df8c4121f6de (diff)
downloadbcm5719-llvm-dde79d8f1a8c08d386be32260f84c7a95cb356b8.tar.gz
bcm5719-llvm-dde79d8f1a8c08d386be32260f84c7a95cb356b8.zip
mass elimination of reliance on automatic iterator dereferencing
llvm-svn: 109103
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
index 1fb20f1dc06..b26208ba195 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -94,7 +94,7 @@ bool FastISel::hasTrivialKill(const Value *V) const {
!(I->getOpcode() == Instruction::BitCast ||
I->getOpcode() == Instruction::PtrToInt ||
I->getOpcode() == Instruction::IntToPtr) &&
- cast<Instruction>(I->use_begin())->getParent() == I->getParent();
+ cast<Instruction>(*I->use_begin())->getParent() == I->getParent();
}
unsigned FastISel::getRegForValue(const Value *V) {
OpenPOWER on IntegriCloud