aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <sunfish@mozilla.com>2014-03-03 11:53:28 -0800
committerDan Gohman <sunfish@mozilla.com>2014-03-03 14:15:08 -0800
commit4d5e2f7194cc98be51ffbfc5a253be928290972e (patch)
treea00e8edf56a946bcb5548775ae8eb77c653baeba
parent18c94bde936188c07f506fef76da48aa1be0550f (diff)
Don't store padding zeros for a ConstantAggregateZero.
-rw-r--r--lib/Target/JSBackend/JSBackend.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Target/JSBackend/JSBackend.cpp b/lib/Target/JSBackend/JSBackend.cpp
index 8a811b6958..1673ea4503 100644
--- a/lib/Target/JSBackend/JSBackend.cpp
+++ b/lib/Target/JSBackend/JSBackend.cpp
@@ -2089,8 +2089,6 @@ void JSWriter::parseConstant(const std::string& name, const Constant* CV, bool c
} else if (isa<ConstantAggregateZero>(CV)) {
if (calculate) {
unsigned Bytes = DL->getTypeStoreSize(CV->getType());
- // FIXME: assume full 64-bit alignment for now
- Bytes = memAlign(Bytes);
HeapData *GlobalData = allocateAddress(name);
for (unsigned i = 0; i < Bytes; ++i) {
GlobalData->push_back(0);