summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2019-07-31 09:16:24 +0000
committerGuillaume Chatelet <gchatelet@google.com>2019-07-31 09:16:24 +0000
commitf87a9626f1df7083c30222693188401d3321f7b0 (patch)
treece616faf32fd5d1fde0813d2152bd69b2182ff49
parent7deaeee753f60ce4ef4ee7fda9d95fe5941b4ffb (diff)
downloadbcm5719-llvm-f87a9626f1df7083c30222693188401d3321f7b0.tar.gz
bcm5719-llvm-f87a9626f1df7083c30222693188401d3321f7b0.zip
Add default constructor for MaybeAlign
llvm-svn: 367400
-rw-r--r--llvm/include/llvm/Support/Alignment.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/Alignment.h b/llvm/include/llvm/Support/Alignment.h
index 4068372512a..be369eb9831 100644
--- a/llvm/include/llvm/Support/Alignment.h
+++ b/llvm/include/llvm/Support/Alignment.h
@@ -87,6 +87,8 @@ private:
using UP = llvm::Optional<Align>;
public:
+ // Default is undefined.
+ MaybeAlign() = default;
// Do not perform checks in case of copy/move construct/assign, because the
// checks have been performed when building `Other`.
MaybeAlign(const MaybeAlign &Other) = default;
OpenPOWER on IntegriCloud