From 7165ee9b6b4aad36a04a67c9653c3267377fb13c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 26 Feb 2007 07:59:53 +0000 Subject: [PATCH] switch to smallvector llvm-svn: 34633 --- lib/Target/X86/X86ISelLowering.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index fcae0851097..6ed1fcac367 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -1059,17 +1059,15 @@ SDOperand X86TargetLowering::LowerCCCCallTo(SDOperand Op, SelectionDAG &DAG, //===----------------------------------------------------------------------===// class CallingConvState { - uint32_t UsedRegs[(X86::NUM_TARGET_REGS+31)/32]; unsigned StackOffset; const MRegisterInfo &MRI; + SmallVector UsedRegs; public: CallingConvState(const MRegisterInfo &mri) : MRI(mri) { // No stack is used. StackOffset = 0; UsedRegs.resize(MRI.getNumRegs()); - // No registers are used. - memset(UsedRegs, 0, sizeof(UsedRegs)); } unsigned getNextStackOffset() const { return StackOffset; }