diff options
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 d462bdd1e9..3549053279 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()); } |