diff options
author | Chris Lattner <sabre@nondot.org> | 2004-04-27 15:13:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-04-27 15:13:33 +0000 |
commit | 6ffe551f657c948d6a473a198ecbd1188bf9ce45 (patch) | |
tree | 7502db02d88eff125fc9e8c36d140faea8484787 /lib/Bytecode | |
parent | 21e232501a9d5ace29187b20a211ca73b09a1c75 (diff) | |
download | external_llvm-6ffe551f657c948d6a473a198ecbd1188bf9ce45.zip external_llvm-6ffe551f657c948d6a473a198ecbd1188bf9ce45.tar.gz external_llvm-6ffe551f657c948d6a473a198ecbd1188bf9ce45.tar.bz2 |
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/Bytecode')
-rw-r--r-- | lib/Bytecode/Writer/SlotCalculator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bytecode/Writer/SlotCalculator.cpp b/lib/Bytecode/Writer/SlotCalculator.cpp index d462bdd..3549053 100644 --- a/lib/Bytecode/Writer/SlotCalculator.cpp +++ b/lib/Bytecode/Writer/SlotCalculator.cpp @@ -186,7 +186,7 @@ void SlotCalculator::processModule() { if (isa<Constant>(I->getOperand(op))) getOrCreateSlot(I->getOperand(op)); getOrCreateSlot(I->getType()); - if (const VANextInst *VAN = dyn_cast<VANextInst>(*I)) + if (const VANextInst *VAN = dyn_cast<VANextInst>(&*I)) getOrCreateSlot(VAN->getArgType()); } processSymbolTableConstants(&F->getSymbolTable()); @@ -448,7 +448,7 @@ void SlotCalculator::buildCompactionTable(const Function *F) { if (isa<Constant>(I->getOperand(op)) || isa<GlobalValue>(I->getOperand(op))) getOrCreateCompactionTableSlot(I->getOperand(op)); - if (const VANextInst *VAN = dyn_cast<VANextInst>(*I)) + if (const VANextInst *VAN = dyn_cast<VANextInst>(&*I)) getOrCreateCompactionTableSlot(VAN->getArgType()); } |