[llvm-commits] CVS: llvm/lib/VMCore/SlotCalculator.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Apr 27 10:13:13 PDT 2004
Changes in directory llvm/lib/VMCore:
SlotCalculator.cpp updated: 1.52 -> 1.53
---
Log message:
Changes to fix up the inst_iterator to pass to boost iterator checks. This
patch was graciously contributed by Vladimir Prus.
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/VMCore/SlotCalculator.cpp
diff -u llvm/lib/VMCore/SlotCalculator.cpp:1.52 llvm/lib/VMCore/SlotCalculator.cpp:1.53
--- llvm/lib/VMCore/SlotCalculator.cpp:1.52 Sat Feb 14 23:55:15 2004
+++ llvm/lib/VMCore/SlotCalculator.cpp Tue Apr 27 10:13:09 2004
@@ -186,7 +186,7 @@
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 @@
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());
}
More information about the llvm-commits
mailing list