[llvm-commits] CVS: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Wed Apr 28 12:16:09 PDT 2004
Changes in directory reopt/lib/LightWtProfiling:
UnpackTraceFunction.cpp updated: 1.58 -> 1.59
---
Log message:
Fix usage of iterator
---
Diffs of the changes: (+1 -1)
Index: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
diff -u reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.58 reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.59
--- reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.58 Mon Apr 26 14:47:32 2004
+++ reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp Wed Apr 28 12:15:30 2004
@@ -364,7 +364,7 @@
DEBUG(std::cerr << "getSavedStateIndexOfInstruction(F = " << F->getName()
<< "(), I = " << *I << ")\n");
for (const_inst_iterator II=inst_begin (F), IE=inst_end (F); II!=IE; ++II) {
- if (*II == I) {
+ if (&*II == I) {
DEBUG(std::cerr << "--> returns " << Key << "\n");
return Key;
}
More information about the llvm-commits
mailing list