Skip to content

Commit 5530fb5

Browse files
committed
Speculative fix for bots after 84e8257, v2
Looks like some bots don't like the defaulted default constructor, try being explicit.
1 parent 010238a commit 5530fb5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/include/clang/Basic/FileEntry.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,12 @@ namespace optional_detail {
167167
/// Customize OptionalStorage<FileEntryRef> to use FileEntryRef and its
168168
/// optional_none_tag to keep it the size of a single pointer.
169169
template <> class OptionalStorage<clang::FileEntryRef> {
170-
clang::FileEntryRef MaybeRef = clang::FileEntryRef::optional_none_tag{};
170+
clang::FileEntryRef MaybeRef;
171171

172172
public:
173173
~OptionalStorage() = default;
174-
constexpr OptionalStorage() noexcept = default;
174+
constexpr OptionalStorage() noexcept
175+
: MaybeRef(clang::FileEntryRef::optional_none_tag) {}
175176
constexpr OptionalStorage(OptionalStorage const &Other) = default;
176177
constexpr OptionalStorage(OptionalStorage &&Other) = default;
177178
OptionalStorage &operator=(OptionalStorage const &Other) = default;

0 commit comments

Comments
 (0)