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

Brian Gaeke gaeke at cs.uiuc.edu
Wed Mar 10 13:04:10 PST 2004


Changes in directory reopt/lib/LightWtProfiling:

UnpackTraceFunction.cpp updated: 1.42 -> 1.43

---
Log message:

Try printing out the values that we can't look up alloc state for.


---
Diffs of the changes:  (+4 -0)

Index: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
diff -u reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.42 reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.43
--- reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.42	Tue Mar  9 13:18:15 2004
+++ reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp	Wed Mar 10 13:03:45 2004
@@ -241,6 +241,10 @@
     // Find the alloc state of an argument.
     OperandKey = getNumberOfFunctionArg (F, A);
   } else {
+    if (! isa<Instruction> (V)) {
+      std::cerr << "ERROR: Don't know how to look up alloc state for this Value:\n\t" << *V << "\n";
+      abort ();
+    }
     // Figure out the indices (VI, VO) that can be used to look up V,
     // which is an operand of some instruction in F, in FState:
     Instruction *Instr = cast<Instruction> (V);





More information about the llvm-commits mailing list