Speculative fix for bots after 84e8257937, v2

Looks like some bots don't like the defaulted default constructor, try
being explicit.
This commit is contained in:
Duncan P. N. Exon Smith 2020-10-30 14:04:48 -04:00
parent 010238a296
commit 5530fb586f
1 changed files with 3 additions and 2 deletions

View File

@ -167,11 +167,12 @@ namespace optional_detail {
/// Customize OptionalStorage<FileEntryRef> to use FileEntryRef and its
/// optional_none_tag to keep it the size of a single pointer.
template <> class OptionalStorage<clang::FileEntryRef> {
clang::FileEntryRef MaybeRef = clang::FileEntryRef::optional_none_tag{};
clang::FileEntryRef MaybeRef;
public:
~OptionalStorage() = default;
constexpr OptionalStorage() noexcept = default;
constexpr OptionalStorage() noexcept
: MaybeRef(clang::FileEntryRef::optional_none_tag) {}
constexpr OptionalStorage(OptionalStorage const &Other) = default;
constexpr OptionalStorage(OptionalStorage &&Other) = default;
OptionalStorage &operator=(OptionalStorage const &Other) = default;