From ee3be4f2a9c4c7e46d9408ef641fbb370de752d9 Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Mon, 10 Oct 2011 23:36:56 +0000 Subject: [PATCH] Fix warning. llvm-svn: 141597 --- llvm/lib/Object/MachOObjectFile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp index 52b27b6b753e..0359a8855b32 100644 --- a/llvm/lib/Object/MachOObjectFile.cpp +++ b/llvm/lib/Object/MachOObjectFile.cpp @@ -487,11 +487,11 @@ error_code MachOObjectFile::getSectionAlignment(DataRefImpl DRI, if (is64BitLoadCommand(MachOObj, DRI)) { InMemoryStruct Sect; getSection64(DRI, Sect); - Result = 1 << Sect->Align; + Result = uint64_t(1) << Sect->Align; } else { InMemoryStruct Sect; getSection(DRI, Sect); - Result = 1 << Sect->Align; + Result = uint64_t(1) << Sect->Align; } return object_error::success; }