summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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