]> granicus.if.org Git - llvm/commitdiff
Add default constructor for MaybeAlign
authorGuillaume Chatelet <gchatelet@google.com>
Wed, 31 Jul 2019 09:16:24 +0000 (09:16 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Wed, 31 Jul 2019 09:16:24 +0000 (09:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367400 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Alignment.h

index 4068372512aaa517e5d94b95f32c0747264b69c1..be369eb9831848ed4d5ab39f0c2e466f87c413dc 100644 (file)
@@ -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;