diff options
| author | Dale Johannesen <dalej@apple.com> | 2010-02-10 00:41:49 +0000 | 
|---|---|---|
| committer | Dale Johannesen <dalej@apple.com> | 2010-02-10 00:41:49 +0000 | 
| commit | d40d42c9e5e840705e91dd985b684a96e582cb01 (patch) | |
| tree | 1ff60c86c87b19bb754391c6dd514f7fc3ad0419 /llvm/lib/CodeGen | |
| parent | ff68a42121f71774bc318a416314afda110e8004 (diff) | |
| download | bcm5719-llvm-d40d42c9e5e840705e91dd985b684a96e582cb01.tar.gz bcm5719-llvm-d40d42c9e5e840705e91dd985b684a96e582cb01.zip | |
Add isDebug argument to ChangeToRegister; this prevents
the field from being used uninitialized later in some cases.
llvm-svn: 95735
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 12d30065b8a..34f7781866b 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -127,7 +127,8 @@ void MachineOperand::ChangeToImmediate(int64_t ImmVal) {  /// the specified value.  If an operand is known to be an register already,  /// the setReg method should be used.  void MachineOperand::ChangeToRegister(unsigned Reg, bool isDef, bool isImp, -                                      bool isKill, bool isDead, bool isUndef) { +                                      bool isKill, bool isDead, bool isUndef, +                                      bool isDebug) {    // If this operand is already a register operand, use setReg to update the     // register's use/def lists.    if (isReg()) { @@ -152,6 +153,7 @@ void MachineOperand::ChangeToRegister(unsigned Reg, bool isDef, bool isImp,    IsDead = isDead;    IsUndef = isUndef;    IsEarlyClobber = false; +  IsDebug = isDebug;    SubReg = 0;  } | 

