summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-07 16:46:55 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-07 16:56:17 +0000
commit205c84dc8aee45f29ac92bb7b871ed2845147388 (patch)
tree330551c00fbd4e6edd4f04f91712f81cb721052d
parent0e9b5760f2c6ce6f41600b90b89a960de41de960 (diff)
downloadbcm5719-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.h2
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; }
OpenPOWER on IntegriCloud