Author: Duncan P. N. Exon Smith Date: 2020-10-30T14:01:01-04:00 New Revision: 010238a296e61cbf6f4d7f4383e26cf00c4e4992
URL: https://github.com/llvm/llvm-project/commit/010238a296e61cbf6f4d7f4383e26cf00c4e4992 DIFF: https://github.com/llvm/llvm-project/commit/010238a296e61cbf6f4d7f4383e26cf00c4e4992.diff LOG: 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. Added: Modified: clang/include/clang/Basic/FileEntry.h Removed: ################################################################################ diff --git a/clang/include/clang/Basic/FileEntry.h b/clang/include/clang/Basic/FileEntry.h index 318aa2cdbb47..03697c584b0b 100644 --- a/clang/include/clang/Basic/FileEntry.h +++ b/clang/include/clang/Basic/FileEntry.h @@ -148,7 +148,7 @@ class FileEntryRef { // 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; }; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits