From: Ruchira Sasanka Date: Fri, 19 Oct 2001 18:17:49 +0000 (+0000) Subject: Added code to Initialize (MachineOperand) to initialize regNum to -1 -- Ruchira X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=33eb292e127a75d51587c390241817d8c355a18b;p=oota-llvm.git Added code to Initialize (MachineOperand) to initialize regNum to -1 -- Ruchira git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@919 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 3b0966a90ee..9eaced46567 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/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