summaryrefslogtreecommitdiff
path: root/lld/wasm
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2022-12-02 12:42:43 +0000
committerGuillaume Chatelet <gchatelet@google.com>2022-12-02 12:43:01 +0000
commit173f62d98fcaa2d3e5afc477f0c3bb65cd502fd6 (patch)
tree022a689a1ee401ecdddec7ae185bd8f3648eb396 /lld/wasm
parent1a8dd7425873fae55a38cbdb41cccb1f17c82e8c (diff)
downloadllvm-173f62d98fcaa2d3e5afc477f0c3bb65cd502fd6.tar.gz
[Alignment][NFC] Use Align in StringTableBuilder ctor
Diffstat (limited to 'lld/wasm')
-rw-r--r--lld/wasm/InputChunks.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/wasm/InputChunks.h b/lld/wasm/InputChunks.h
index 203ad5ad947d..fb2c43861945 100644
--- a/lld/wasm/InputChunks.h
+++ b/lld/wasm/InputChunks.h
@@ -223,7 +223,8 @@ class SyntheticMergedChunk : public InputChunk {
public:
SyntheticMergedChunk(StringRef name, uint32_t alignment, uint32_t flags)
: InputChunk(nullptr, InputChunk::MergedChunk, name, alignment, flags),
- builder(llvm::StringTableBuilder::RAW, 1ULL << alignment) {}
+ builder(llvm::StringTableBuilder::RAW, llvm::Align(1ULL << alignment)) {
+ }
static bool classof(const InputChunk *c) {
return c->kind() == InputChunk::MergedChunk;