From 6ffe551f657c948d6a473a198ecbd1188bf9ce45 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 27 Apr 2004 15:13:33 +0000 Subject: 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 --- lib/Bytecode/Writer/SlotCalculator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Bytecode/Writer') diff --git a/lib/Bytecode/Writer/SlotCalculator.cpp b/lib/Bytecode/Writer/SlotCalculator.cpp index d462bdd1e9..3549053279 100644 --- a/lib/Bytecode/Writer/SlotCalculator.cpp +++ b/lib/Bytecode/Writer/SlotCalculator.cpp @@ -186,7 +186,7 @@ void SlotCalculator::processModule() { if (isa(I->getOperand(op))) getOrCreateSlot(I->getOperand(op)); getOrCreateSlot(I->getType()); - if (const VANextInst *VAN = dyn_cast(*I)) + if (const VANextInst *VAN = dyn_cast(&*I)) getOrCreateSlot(VAN->getArgType()); } processSymbolTableConstants(&F->getSymbolTable()); @@ -448,7 +448,7 @@ void SlotCalculator::buildCompactionTable(const Function *F) { if (isa(I->getOperand(op)) || isa(I->getOperand(op))) getOrCreateCompactionTableSlot(I->getOperand(op)); - if (const VANextInst *VAN = dyn_cast(*I)) + if (const VANextInst *VAN = dyn_cast(&*I)) getOrCreateCompactionTableSlot(VAN->getArgType()); } -- cgit v1.2.3-70-g09d2