summaryrefslogtreecommitdiff
path: root/lib/Support/Timer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-02-05 21:44:28 +0000
committerChris Lattner <sabre@nondot.org>2003-02-05 21:44:28 +0000
commitbbe5ac1458f3719fd51785f086e9166ccbb0c464 (patch)
tree5f674ecac4ada5be473861efee9ba21213496514 /lib/Support/Timer.cpp
parenta329733f471a51d64dadbc4ac400c7e54d94358b (diff)
downloadllvm-bbe5ac1458f3719fd51785f086e9166ccbb0c464.tar.gz
llvm-bbe5ac1458f3719fd51785f086e9166ccbb0c464.tar.bz2
llvm-bbe5ac1458f3719fd51785f086e9166ccbb0c464.tar.xz
Squelch warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5494 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Timer.cpp')
-rw-r--r--lib/Support/Timer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/Timer.cpp b/lib/Support/Timer.cpp
index 8023c500e5..3a81fc4b53 100644
--- a/lib/Support/Timer.cpp
+++ b/lib/Support/Timer.cpp
@@ -89,7 +89,7 @@ struct TimeRecord {
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))