summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBuilder.h
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2019-12-09 17:36:50 +0100
committerGuillaume Chatelet <gchatelet@google.com>2019-12-10 15:17:44 +0100
commit1b2842bf902a8b52acbef2425120533b63be5ae3 (patch)
treef3e2d677e3efb5acde068e69f28fb84741978560 /clang/lib/CodeGen/CGBuilder.h
parent707e9707814bfbb0297be4ab1bd4f976aa44ed37 (diff)
downloadbcm5719-llvm-1b2842bf902a8b52acbef2425120533b63be5ae3.tar.gz
bcm5719-llvm-1b2842bf902a8b52acbef2425120533b63be5ae3.zip
[Alignment][NFC] CreateMemSet use MaybeAlign
Summary: This is patch is part of a series 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: courbet Subscribers: arsenm, jvesely, nhaehnle, hiraditya, cfe-commits, llvm-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D71213
Diffstat (limited to 'clang/lib/CodeGen/CGBuilder.h')
-rw-r--r--clang/lib/CodeGen/CGBuilder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGBuilder.h b/clang/lib/CodeGen/CGBuilder.h
index dae3fbbc4b9..746053f43e3 100644
--- a/clang/lib/CodeGen/CGBuilder.h
+++ b/clang/lib/CodeGen/CGBuilder.h
@@ -296,7 +296,7 @@ public:
llvm::CallInst *CreateMemSet(Address Dest, llvm::Value *Value,
llvm::Value *Size, bool IsVolatile = false) {
return CreateMemSet(Dest.getPointer(), Value, Size,
- Dest.getAlignment().getQuantity(), IsVolatile);
+ Dest.getAlignment().getAsAlign(), IsVolatile);
}
using CGBuilderBaseTy::CreatePreserveStructAccessIndex;
OpenPOWER on IntegriCloud