Added code to Initialize (MachineOperand) to initialize regNum to -1 -- Ruchira
authorRuchira Sasanka <sasanka@students.uiuc.edu>
Fri, 19 Oct 2001 18:17:49 +0000 (18:17 +0000)
committerRuchira Sasanka <sasanka@students.uiuc.edu>
Fri, 19 Oct 2001 18:17:49 +0000 (18:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@919 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineInstr.h

index 3b0966a90ee9d8041dbabb56f004305af550e0c6..9eaced4656723609e8fbf70631320d83fb431f3c 100644 (file)
@@ -198,6 +198,7 @@ MachineOperand::Initialize(MachineOperandType operandType,
 {
   opType = operandType;
   value = _val;
+  regNum = -1;
 }
 
 inline void
@@ -207,6 +208,7 @@ MachineOperand::InitializeConst(MachineOperandType operandType,
   opType = operandType;
   value = NULL;
   immedVal = intValue;
+  regNum = -1;
 }
 
 inline void