From 10c47465e2505ddfee4e62a2ab2e535abea3ec56 Mon Sep 17 00:00:00 2001 From: Guillaume Chatelet Date: Thu, 1 Dec 2022 12:34:21 +0000 Subject: [Alignment] Use Align for ObjectFile::getSectionAlignment Differential Revision: https://reviews.llvm.org/D139098 --- llvm/lib/Object/WasmObjectFile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Object/WasmObjectFile.cpp') diff --git a/llvm/lib/Object/WasmObjectFile.cpp b/llvm/lib/Object/WasmObjectFile.cpp index 0e24ac94bf70..6657102bf479 100644 --- a/llvm/lib/Object/WasmObjectFile.cpp +++ b/llvm/lib/Object/WasmObjectFile.cpp @@ -1735,8 +1735,8 @@ WasmObjectFile::getSectionContents(DataRefImpl Sec) const { return S.Content; } -uint64_t WasmObjectFile::getSectionAlignment(DataRefImpl Sec) const { - return 1; +Align WasmObjectFile::getSectionAlignment(DataRefImpl Sec) const { + return Align(1); } bool WasmObjectFile::isSectionCompressed(DataRefImpl Sec) const { -- cgit v1.2.3