diff options
author | Devang Patel <dpatel@apple.com> | 2009-01-05 17:31:22 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-01-05 17:31:22 +0000 |
commit | 56a8bb670f9eb91416e867dd4f8670547497fc27 (patch) | |
tree | 409f18068593ba69f6ea2749bfefa31c7f2edac0 /llvm/lib/CodeGen | |
parent | 1d59d7843cb1f9d0e513be14f6f45b53ba3d7cbb (diff) | |
download | bcm5719-llvm-56a8bb670f9eb91416e867dd4f8670547497fc27.tar.gz bcm5719-llvm-56a8bb670f9eb91416e867dd4f8670547497fc27.zip |
squash warnings.
llvm-svn: 61707
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | 1 | ||||
-rw-r--r-- | llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp index 3daa79ed71d..4f17164ce6a 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp @@ -2019,6 +2019,7 @@ void SelectionDAGLowering::visitSwitch(SwitchInst &SI) { size_t numCmps = Clusterify(Cases, SI); DEBUG(errs() << "Clusterify finished. Total clusters: " << Cases.size() << ". Total compares: " << numCmps << '\n'); + numCmps = 0; // Get the Value to be switched on and default basic blocks, which will be // inserted into CaseBlock records, representing basic blocks in the binary diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp index cfac82613ff..cfc77eef046 100644 --- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp +++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp @@ -1662,7 +1662,7 @@ bool SimpleRegisterCoalescing::SimpleJoin(LiveInterval &LHS, LiveInterval &RHS){ // optimize for it: if there is more than one value, we merge them all into // the lowest numbered one, then handle the interval as if we were merging // with one value number. - VNInfo *LHSValNo; + VNInfo *LHSValNo = NULL; if (EliminatedLHSVals.size() > 1) { // Loop through all the equal value numbers merging them into the smallest // one. |