Speculative fix for bots after 84e8257937ec6a332aa0b688f4dce57016516ffd
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 30 Oct 2020 17:58:00 +0000 (13:58 -0400)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 30 Oct 2020 18:01:01 +0000 (14:01 -0400)
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

index 318aa2c..03697c5 100644 (file)
@@ -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;
 };