diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-11-07 16:46:55 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-11-07 16:56:17 +0000 |
commit | 205c84dc8aee45f29ac92bb7b871ed2845147388 (patch) | |
tree | 330551c00fbd4e6edd4f04f91712f81cb721052d | |
parent | 0e9b5760f2c6ce6f41600b90b89a960de41de960 (diff) | |
download | bcm5719-llvm-205c84dc8aee45f29ac92bb7b871ed2845147388.tar.gz bcm5719-llvm-205c84dc8aee45f29ac92bb7b871ed2845147388.zip |
MachineMemOperand::getBaseAlignment() - fix "shift of i32 then extended to i64" static analyzer warning. NFCI.
-rw-r--r-- | llvm/include/llvm/CodeGen/MachineMemOperand.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineMemOperand.h b/llvm/include/llvm/CodeGen/MachineMemOperand.h index 33a48a235e1..7ee700c62a2 100644 --- a/llvm/include/llvm/CodeGen/MachineMemOperand.h +++ b/llvm/include/llvm/CodeGen/MachineMemOperand.h @@ -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; } |