Use getStoreSize() instead of getStoreSizeInBits()/8.
[oota-llvm.git] / lib / CodeGen / SelectionDAG / SelectionDAG.cpp
index f49332d6478e1215d86656e175f0c7d975ddb4d1..0aa0314643bc8c61ce4c1744561f96455defe84c 100644 (file)
@@ -1367,7 +1367,7 @@ SDValue SelectionDAG::getShiftAmountOperand(SDValue Op) {
 /// specified value type.
 SDValue SelectionDAG::CreateStackTemporary(EVT VT, unsigned minAlign) {
   MachineFrameInfo *FrameInfo = getMachineFunction().getFrameInfo();
-  unsigned ByteSize = VT.getStoreSizeInBits()/8;
+  unsigned ByteSize = VT.getStoreSize();
   const Type *Ty = VT.getTypeForEVT(*getContext());
   unsigned StackAlign =
   std::max((unsigned)TLI.getTargetData()->getPrefTypeAlignment(Ty), minAlign);