From 010238a296e61cbf6f4d7f4383e26cf00c4e4992 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Duncan=20P=2E=20N=2E=20Exon=C2=A0Smith?= Date: Fri, 30 Oct 2020 13:58:00 -0400 Subject: [PATCH] Speculative fix for bots after 84e8257937ec6a332aa0b688f4dce57016516ffd I'm not seeing an error locally, but many bots are having a problem with the call to `hasOptionalValue`. Try to fix it. --- clang/include/clang/Basic/FileEntry.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/include/clang/Basic/FileEntry.h b/clang/include/clang/Basic/FileEntry.h index 318aa2c..03697c5 100644 --- a/clang/include/clang/Basic/FileEntry.h +++ b/clang/include/clang/Basic/FileEntry.h @@ -148,7 +148,7 @@ private: // Private constructor for use by OptionalStorage. FileEntryRef(optional_none_tag) : ME(nullptr) {} - bool hasOptionalValue() const { return ME; } + constexpr bool hasOptionalValue() const { return ME; } const MapEntry *ME; }; -- 2.7.4