Silence an implicit conversion warning on the bit shift result in MSVC; NFC
authorAaron Ballman <aaron@aaronballman.com>
Tue, 5 Oct 2021 11:13:00 +0000 (07:13 -0400)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 5 Oct 2021 11:13:47 +0000 (07:13 -0400)
llvm/lib/Object/XCOFFObjectFile.cpp

index c915bf7..e4daa8c 100644 (file)
@@ -230,7 +230,7 @@ uint32_t XCOFFObjectFile::getSymbolAlignment(DataRefImpl Symb) const {
       // TODO: report the error up the stack.
       consumeError(CsectAuxRefOrError.takeError());
     else
-      Result = 1 << CsectAuxRefOrError.get().getAlignmentLog2();
+      Result = 1ULL << CsectAuxRefOrError.get().getAlignmentLog2();
   }
   return Result;
 }