diff --git a/clang/lib/AST/Interp/Context.cpp b/clang/lib/AST/Interp/Context.cpp index d025586d91b7d3..4c4808324c3a14 100644 --- a/clang/lib/AST/Interp/Context.cpp +++ b/clang/lib/AST/Interp/Context.cpp @@ -102,7 +102,7 @@ std::optional Context::classify(QualType T) const { case 8: return PT_Sint8; default: - return {}; + return std::nullopt; } } @@ -117,7 +117,7 @@ std::optional Context::classify(QualType T) const { case 8: return PT_Uint8; default: - return {}; + return std::nullopt; } } @@ -143,7 +143,7 @@ std::optional Context::classify(QualType T) const { if (const auto *DT = dyn_cast(T)) return classify(DT->getPointeeType()); - return {}; + return std::nullopt; } unsigned Context::getCharBit() const {