aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/IPA/FindUsedTypes.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-04-27 15:13:33 +0000
committerChris Lattner <sabre@nondot.org>2004-04-27 15:13:33 +0000
commit6ffe551f657c948d6a473a198ecbd1188bf9ce45 (patch)
tree7502db02d88eff125fc9e8c36d140faea8484787 /lib/Analysis/IPA/FindUsedTypes.cpp
parent21e232501a9d5ace29187b20a211ca73b09a1c75 (diff)
Changes to fix up the inst_iterator to pass to boost iterator checks. This
patch was graciously contributed by Vladimir Prus. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13185 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA/FindUsedTypes.cpp')
-rw-r--r--lib/Analysis/IPA/FindUsedTypes.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/IPA/FindUsedTypes.cpp b/lib/Analysis/IPA/FindUsedTypes.cpp
index e930499e2e..870f5716a3 100644
--- a/lib/Analysis/IPA/FindUsedTypes.cpp
+++ b/lib/Analysis/IPA/FindUsedTypes.cpp
@@ -79,11 +79,11 @@ bool FindUsedTypes::run(Module &m) {
//
for (const_inst_iterator II = inst_begin(F), IE = inst_end(F);
II != IE; ++II) {
- const Instruction *I = *II;
- const Type *Ty = I->getType();
+ const Instruction &I = *II;
+ const Type *Ty = I.getType();
IncorporateType(Ty); // Incorporate the type of the instruction
- for (User::const_op_iterator OI = I->op_begin(), OE = I->op_end();
+ for (User::const_op_iterator OI = I.op_begin(), OE = I.op_end();
OI != OE; ++OI)
IncorporateValue(*OI); // Insert inst operand types as well
}