[llvm] r367400 - Add default constructor for MaybeAlign

Guillaume Chatelet via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 31 02:16:24 PDT 2019


Author: gchatelet
Date: Wed Jul 31 02:16:24 2019
New Revision: 367400

URL: http://llvm.org/viewvc/llvm-project?rev=367400&view=rev
Log:
Add default constructor for MaybeAlign

Modified:
    llvm/trunk/include/llvm/Support/Alignment.h

Modified: llvm/trunk/include/llvm/Support/Alignment.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Alignment.h?rev=367400&r1=367399&r2=367400&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Alignment.h (original)
+++ llvm/trunk/include/llvm/Support/Alignment.h Wed Jul 31 02:16:24 2019
@@ -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;




More information about the llvm-commits mailing list