diff options
author | Jim Grosbach <grosbach@apple.com> | 2009-10-07 18:44:24 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2009-10-07 18:44:24 +0000 |
commit | b1355fe89fe28726ead6203e1b1f6e43f3292a81 (patch) | |
tree | 0286c625225acda0695cd9132d05713730b22d7f /lib/CodeGen | |
parent | fd4a856fb7ad8ccf886eebd9a1575be404ada2f9 (diff) | |
download | external_llvm-b1355fe89fe28726ead6203e1b1f6e43f3292a81.zip external_llvm-b1355fe89fe28726ead6203e1b1f6e43f3292a81.tar.gz external_llvm-b1355fe89fe28726ead6203e1b1f6e43f3292a81.tar.bz2 |
add initializers for clarity. Add missing assignment of PrevLastUseOp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83481 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/PrologEpilogInserter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp index a2a8af3..66ec0b3 100644 --- a/lib/CodeGen/PrologEpilogInserter.cpp +++ b/lib/CodeGen/PrologEpilogInserter.cpp @@ -782,8 +782,8 @@ void PEI::scavengeFrameVirtualRegs(MachineFunction &Fn) { unsigned CurrentScratchReg = 0; unsigned PrevScratchReg = 0; int PrevValue; - MachineInstr *PrevLastUseMI; - unsigned PrevLastUseOp; + MachineInstr *PrevLastUseMI = NULL; + unsigned PrevLastUseOp = 0; // The instruction stream may change in the loop, so check BB->end() // directly. @@ -875,6 +875,7 @@ void PEI::scavengeFrameVirtualRegs(MachineFunction &Fn) { if (MI->getOperand(i).isKill()) { PrevScratchReg = CurrentScratchReg; PrevLastUseMI = MI; + PrevLastUseOp = i; CurrentScratchReg = CurrentVirtReg = 0; } } |