summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-09-23 21:07:02 +0000
committerDan Gohman <gohman@apple.com>2009-09-23 21:07:02 +0000
commit203d53ed791bae4291fe5be593b6eab0f5278884 (patch)
tree3eb6ece6f8b9e1daaa625d820d573f2dd8211ad7 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent99bdae29924e2373a68da0421f0cad08869418b8 (diff)
downloadbcm5719-llvm-203d53ed791bae4291fe5be593b6eab0f5278884.tar.gz
bcm5719-llvm-203d53ed791bae4291fe5be593b6eab0f5278884.zip
Use getStoreSize() instead of getStoreSizeInBits()/8.
llvm-svn: 82656
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index f49332d6478..0aa0314643b 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -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);
OpenPOWER on IntegriCloud