[llvm-commits] CVS: llvm/lib/Transforms/Instrumentation/TraceValues.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Apr 23 11:38:07 PDT 2003
Changes in directory llvm/lib/Transforms/Instrumentation:
TraceValues.cpp updated: 1.55 -> 1.56
---
Log message:
Remove unnecesary &*'s
---
Diffs of the changes:
Index: llvm/lib/Transforms/Instrumentation/TraceValues.cpp
diff -u llvm/lib/Transforms/Instrumentation/TraceValues.cpp:1.55 llvm/lib/Transforms/Instrumentation/TraceValues.cpp:1.56
--- llvm/lib/Transforms/Instrumentation/TraceValues.cpp:1.55 Wed Apr 16 15:28:40 2003
+++ llvm/lib/Transforms/Instrumentation/TraceValues.cpp Wed Apr 23 11:37:40 2003
@@ -298,9 +298,9 @@
ExternalFuncs& externalFuncs) {
for (BasicBlock::iterator II=BB->begin(), IE = BB->end(); II != IE; ++II)
- if (FreeInst *FI = dyn_cast<FreeInst>(&*II))
+ if (FreeInst *FI = dyn_cast<FreeInst>(II))
InsertReleaseInst(FI->getOperand(0), BB, FI,externalFuncs.ReleasePtrFunc);
- else if (AllocaInst *AI = dyn_cast<AllocaInst>(&*II))
+ else if (AllocaInst *AI = dyn_cast<AllocaInst>(II))
InsertRecordInst(AI, BB, AI->getNext(), externalFuncs.RecordPtrFunc);
}
@@ -332,7 +332,7 @@
// instruction *preceding* InsertPos to check when to terminate the loop.
//
for (BasicBlock::iterator II = BB->begin(); &*II != InsertPos; ++II) {
- if (StoreInst *SI = dyn_cast<StoreInst>(&*II)) {
+ if (StoreInst *SI = dyn_cast<StoreInst>(II)) {
assert(valuesStoredInFunction &&
"Should not be printing a store instruction at function exit");
LoadInst *LI = new LoadInst(SI->getPointerOperand(), "reload." +
More information about the llvm-commits
mailing list