From 1437395c9f44e51940b447da88abb0b4f4baa8e9 Mon Sep 17 00:00:00 2001 From: Ruchira Sasanka Date: Fri, 19 Oct 2001 18:17:49 +0000 Subject: [PATCH] Added code to Initialize (MachineOperand) to initialize regNum to -1 -- Ruchira llvm-svn: 919 --- llvm/include/llvm/CodeGen/MachineInstr.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/include/llvm/CodeGen/MachineInstr.h b/llvm/include/llvm/CodeGen/MachineInstr.h index 3b0966a90ee9..9eaced465672 100644 --- a/llvm/include/llvm/CodeGen/MachineInstr.h +++ b/llvm/include/llvm/CodeGen/MachineInstr.h @@ -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