summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2019-08-21 14:29:30 +0000
committerGuillaume Chatelet <gchatelet@google.com>2019-08-21 14:29:30 +0000
commit1c18a9cb9eef141ccd3482e351811a98a7f61844 (patch)
tree692a654646ac6ce5204af5004b6e6e82f80d6cd7 /llvm/lib/Analysis
parent717717b1ff8b6ee48331a86feaf2f68b28b6c9d8 (diff)
downloadbcm5719-llvm-1c18a9cb9eef141ccd3482e351811a98a7f61844.tar.gz
bcm5719-llvm-1c18a9cb9eef141ccd3482e351811a98a7f61844.zip
[LLVM][Alignment] Introduce Alignment In MachineFrameInfo
Summary: This is patch is part of a serie to introduce an Alignment type. See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html See this patch for the introduction of the type: https://reviews.llvm.org/D64790 Reviewers: jfb Subscribers: hiraditya, dexonsmith, llvm-commits, courbet Tags: #llvm Differential Revision: https://reviews.llvm.org/D65800 llvm-svn: 369531
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/MemoryBuiltins.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/MemoryBuiltins.cpp b/llvm/lib/Analysis/MemoryBuiltins.cpp
index 729dad46365..c7d2ef9e09b 100644
--- a/llvm/lib/Analysis/MemoryBuiltins.cpp
+++ b/llvm/lib/Analysis/MemoryBuiltins.cpp
@@ -523,7 +523,7 @@ STATISTIC(ObjectVisitorLoad,
APInt ObjectSizeOffsetVisitor::align(APInt Size, uint64_t Align) {
if (Options.RoundToAlign && Align)
- return APInt(IntTyBits, alignTo(Size.getZExtValue(), Align));
+ return APInt(IntTyBits, alignTo(Size.getZExtValue(), llvm::Align(Align)));
return Size;
}
OpenPOWER on IntegriCloud