summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2011-10-10 23:36:56 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2011-10-10 23:36:56 +0000
commitee3be4f2a9c4c7e46d9408ef641fbb370de752d9 (patch)
treec778cfd069c0d46e4486256627a212d5eb55b606 /llvm/lib/Object/MachOObjectFile.cpp
parent192e034aab73944128a7fcefaee335b5fcfbe968 (diff)
downloadbcm5719-llvm-ee3be4f2a9c4c7e46d9408ef641fbb370de752d9.tar.gz
bcm5719-llvm-ee3be4f2a9c4c7e46d9408ef641fbb370de752d9.zip
Fix warning.
llvm-svn: 141597
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
-rw-r--r--llvm/lib/Object/MachOObjectFile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp
index 52b27b6b753..0359a8855b3 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<macho::Section64> Sect;
getSection64(DRI, Sect);
- Result = 1 << Sect->Align;
+ Result = uint64_t(1) << Sect->Align;
} else {
InMemoryStruct<macho::Section> Sect;
getSection(DRI, Sect);
- Result = 1 << Sect->Align;
+ Result = uint64_t(1) << Sect->Align;
}
return object_error::success;
}
OpenPOWER on IntegriCloud