diff --git a/clang/include/clang/Basic/Specifiers.h b/clang/include/clang/Basic/Specifiers.h index cdd67a688283e..ed468db1dc8ae 100644 --- a/clang/include/clang/Basic/Specifiers.h +++ b/clang/include/clang/Basic/Specifiers.h @@ -46,10 +46,7 @@ namespace clang { TSS_unsigned }; - enum TypeSpecifiersPipe { - TSP_unspecified, - TSP_pipe - }; + enum class TypeSpecifiersPipe { Unspecified, Pipe }; /// Specifies the kind of type. enum TypeSpecifierType { diff --git a/clang/lib/Sema/DeclSpec.cpp b/clang/lib/Sema/DeclSpec.cpp index 0124793561229..73a6137ce8971 100644 --- a/clang/lib/Sema/DeclSpec.cpp +++ b/clang/lib/Sema/DeclSpec.cpp @@ -877,7 +877,7 @@ bool DeclSpec::SetTypePipe(bool isPipe, SourceLocation Loc, } if (isPipe) { - TypeSpecPipe = TSP_pipe; + TypeSpecPipe = static_cast(TypeSpecifiersPipe::Pipe); } return false; }