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 | 2af2253e494236c8db4ce5fc0927fd3462aa2542 (patch) | |
| tree | cd3c6bb7043d88b3a0b3259fec99f87885774ad7 /llvm/lib/CodeGen | |
| parent | de1cb40eb4e99209a382b337724b600f3bde29d0 (diff) | |
| download | bcm5719-llvm-2af2253e494236c8db4ce5fc0927fd3462aa2542.tar.gz bcm5719-llvm-2af2253e494236c8db4ce5fc0927fd3462aa2542.zip | |
add initializers for clarity. Add missing assignment of PrevLastUseOp.
llvm-svn: 83481
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/PrologEpilogInserter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp index a2a8af397a3..66ec0b34348 100644 --- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp +++ b/llvm/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; } } |

