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/PrologEpilogInserter.cpp | |
parent | de1cb40eb4e99209a382b337724b600f3bde29d0 (diff) | |
download | llvm-2af2253e494236c8db4ce5fc0927fd3462aa2542.zip llvm-2af2253e494236c8db4ce5fc0927fd3462aa2542.tar.gz llvm-2af2253e494236c8db4ce5fc0927fd3462aa2542.tar.bz2 |
add initializers for clarity. Add missing assignment of PrevLastUseOp.
llvm-svn: 83481
Diffstat (limited to 'llvm/lib/CodeGen/PrologEpilogInserter.cpp')
-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 a2a8af3..66ec0b3 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; } } |