[llvm-commits] CVS: reopt/lib/LightWtProfiling/TraceToFunction.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Tue Sep 2 01:48:04 PDT 2003


Changes in directory reopt/lib/LightWtProfiling:

TraceToFunction.cpp updated: 1.2 -> 1.3

---
Log message:

Try extra hard not to get sucked into dereferencing a null pointer
that operator[] might have put there. Sigh.


---
Diffs of the changes:

Index: reopt/lib/LightWtProfiling/TraceToFunction.cpp
diff -u reopt/lib/LightWtProfiling/TraceToFunction.cpp:1.2 reopt/lib/LightWtProfiling/TraceToFunction.cpp:1.3
--- reopt/lib/LightWtProfiling/TraceToFunction.cpp:1.2	Fri Aug 29 00:13:12 2003
+++ reopt/lib/LightWtProfiling/TraceToFunction.cpp	Tue Sep  2 01:47:06 2003
@@ -452,7 +452,7 @@
       // function, and I will still reference the version from
       // outside the function. Replace any reference to an operand
       // which has had a clone made with a reference to its clone.
-      else if (O2CMap.find (V) != O2CMap.end ()) {
+      else if (O2CMap.find (V) != O2CMap.end () && O2CMap[V]) {
 	DEBUG(std::cerr << *V << " in instruction " << I
 	      << " is value " << O2CMap[V] << " in new function\n");
 	assert (V->getType () == O2CMap[V]->getType ()





More information about the llvm-commits mailing list