[llvm-commits] CVS: llvm/lib/Support/Timer.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Feb 5 15:45:01 PST 2003


Changes in directory llvm/lib/Support:

Timer.cpp updated: 1.11 -> 1.12

---
Log message:

Squelch warning


---
Diffs of the changes:

Index: llvm/lib/Support/Timer.cpp
diff -u llvm/lib/Support/Timer.cpp:1.11 llvm/lib/Support/Timer.cpp:1.12
--- llvm/lib/Support/Timer.cpp:1.11	Thu Jan 30 17:08:50 2003
+++ llvm/lib/Support/Timer.cpp	Wed Feb  5 15:44:28 2003
@@ -89,7 +89,7 @@
 static TimeRecord getTimeRecord(bool Start) {
   struct rusage RU;
   struct timeval T;
-  long MemUsed;
+  long MemUsed = 0;
   if (Start) {
     MemUsed = getMemUsage();
     if (getrusage(RUSAGE_SELF, &RU))





More information about the llvm-commits mailing list