diff --git a/lib/CodeGen/SelectionDAG/CallingConvLower.cpp b/lib/CodeGen/SelectionDAG/CallingConvLower.cpp index 5dcf4ac92d4..c9832ac46ba 100644 --- a/lib/CodeGen/SelectionDAG/CallingConvLower.cpp +++ b/lib/CodeGen/SelectionDAG/CallingConvLower.cpp @@ -26,7 +26,7 @@ CCState::CCState(unsigned CC, bool isVarArg, const TargetMachine &tm, // No stack is used. StackOffset = 0; - UsedRegs.resize(TRI.getNumRegs()); + UsedRegs.resize((TRI.getNumRegs()+31)/32); } // HandleByVal - Allocate a stack slot large enough to pass an argument by