aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAlloc/RegClass.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-22 23:34:11 +0000
committerChris Lattner <sabre@nondot.org>2002-10-22 23:34:11 +0000
commit0ceeb42c9701d995267a04899b3a6acfceb8fb9e (patch)
treee15c890aa9a2c64e7e60cd80af16bc393ac52d80 /lib/CodeGen/RegAlloc/RegClass.cpp
parent1eeac6612b3e8b09b6baf0688f9121d7f8ffefd8 (diff)
Ensure definate initialization
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4263 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAlloc/RegClass.cpp')
-rw-r--r--lib/CodeGen/RegAlloc/RegClass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAlloc/RegClass.cpp b/lib/CodeGen/RegAlloc/RegClass.cpp
index b92b70997b..788921ba01 100644
--- a/lib/CodeGen/RegAlloc/RegClass.cpp
+++ b/lib/CodeGen/RegAlloc/RegClass.cpp
@@ -158,7 +158,7 @@ IGNode * RegClass::getIGNodeWithMinSpillCost()
{
unsigned int IGNodeListSize = IG.getIGNodeList().size();
- double MinSpillCost;
+ double MinSpillCost = 0;
IGNode *MinCostIGNode = NULL;
bool isFirstNode = true;