summaryrefslogtreecommitdiff
path: root/wasm/OutputSegment.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-01-19 10:05:49 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-01-19 10:05:49 +0000
commite2fd426bdafe9f5c10066d3926ece6e342184a67 (patch)
treebfbbb5fd38554e6b8988b7a217e9fd0623728d7d /wasm/OutputSegment.h
parent84c4061b34e048f47e5eb4fbabc1558495e8157c (diff)
Notes
Diffstat (limited to 'wasm/OutputSegment.h')
-rw-r--r--wasm/OutputSegment.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/wasm/OutputSegment.h b/wasm/OutputSegment.h
index d5c89cd19f4ca..a982282dac103 100644
--- a/wasm/OutputSegment.h
+++ b/wasm/OutputSegment.h
@@ -26,7 +26,7 @@ public:
void addInputSegment(InputSegment *InSeg) {
Alignment = std::max(Alignment, InSeg->getAlignment());
InputSegments.push_back(InSeg);
- Size = llvm::alignTo(Size, InSeg->getAlignment());
+ Size = llvm::alignTo(Size, 1 << InSeg->getAlignment());
InSeg->OutputSeg = this;
InSeg->OutputSegmentOffset = Size;
Size += InSeg->getSize();