MachineMemOperand::getBaseAlignment() - fix "shift of i32 then extended to i64" stati...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 7 Nov 2019 16:46:55 +0000 (16:46 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 7 Nov 2019 16:56:17 +0000 (16:56 +0000)
llvm/include/llvm/CodeGen/MachineMemOperand.h

index 33a48a2..7ee700c 100644 (file)
@@ -229,7 +229,7 @@ public:
 
   /// Return the minimum known alignment in bytes of the base address, without
   /// the offset.
-  uint64_t getBaseAlignment() const { return (1u << BaseAlignLog2) >> 1; }
+  uint64_t getBaseAlignment() const { return (1ull << BaseAlignLog2) >> 1; }
 
   /// Return the AA tags for the memory reference.
   AAMDNodes getAAInfo() const { return AAInfo; }