aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/NaCl/PromoteIntegers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Transforms/NaCl/PromoteIntegers.cpp')
-rw-r--r--lib/Transforms/NaCl/PromoteIntegers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/NaCl/PromoteIntegers.cpp b/lib/Transforms/NaCl/PromoteIntegers.cpp
index eba89e3434..5c910d21c1 100644
--- a/lib/Transforms/NaCl/PromoteIntegers.cpp
+++ b/lib/Transforms/NaCl/PromoteIntegers.cpp
@@ -231,7 +231,7 @@ static Value *splitLoad(LoadInst *Inst, ConversionState &State) {
HiType->getPointerTo(),
OrigPtr->getName() + ".hity");
- Value *LoadHi = IRB.CreateLoad(BCHi, Inst->getName() + ".hi");
+ Value *LoadHi = IRB.CreateAlignedLoad(BCHi, 1, Inst->getName() + ".hi"); // XXX EMSCRIPTEN: worst-case alignment assumption
if (!isLegalSize(Width - LoWidth)) {
LoadHi = splitLoad(cast<LoadInst>(LoadHi), State);
// BCHi was still illegal, and has been replaced with a placeholder in the
@@ -288,7 +288,7 @@ static Value *splitStore(StoreInst *Inst, ConversionState &State) {
HiType->getPointerTo(),
OrigPtr->getName() + ".hity");
- Value *StoreHi = IRB.CreateStore(HiTrunc, BCHi);
+ Value *StoreHi = IRB.CreateAlignedStore(HiTrunc, BCHi, 1); // XXX EMSCRIPTEN: worst-case alignment assumption
if (!isLegalSize(Width - LoWidth)) {
// HiTrunc is still illegal, and is redundant with the truncate in the