summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-12-04 18:08:40 +0000
committerDuncan Sands <baldrick@free.fr>2008-12-04 18:08:40 +0000
commit471a654711438dbe5f84e91b7555a49cbe7b1039 (patch)
treed250dfd5a917ba3c803f891dffdb99d1cf3d78fc /llvm/lib/CodeGen
parentf84512a360980eef04d1ce008c709c716503d913 (diff)
downloadbcm5719-llvm-471a654711438dbe5f84e91b7555a49cbe7b1039.tar.gz
bcm5719-llvm-471a654711438dbe5f84e91b7555a49cbe7b1039.zip
When allocating a stack temporary, use the correct
number of bytes for types such as i1 which are not a multiple of 8 bits in length. llvm-svn: 60543
Diffstat (limited to 'llvm/lib/CodeGen')
-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 2c25596d768..6fc2a67e296 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -1237,7 +1237,7 @@ SDValue SelectionDAG::getMemOperand(const MachineMemOperand &MO) {
/// specified value type.
SDValue SelectionDAG::CreateStackTemporary(MVT VT, unsigned minAlign) {
MachineFrameInfo *FrameInfo = getMachineFunction().getFrameInfo();
- unsigned ByteSize = VT.getSizeInBits()/8;
+ unsigned ByteSize = VT.getStoreSizeInBits()/8;
const Type *Ty = VT.getTypeForMVT();
unsigned StackAlign =
std::max((unsigned)TLI.getTargetData()->getPrefTypeAlignment(Ty), minAlign);
OpenPOWER on IntegriCloud