[Sema] Unbreak GCC -Werror build (enum compare).
authorDavide Italiano <davide@freebsd.org>
Fri, 17 Mar 2017 22:19:20 +0000 (22:19 +0000)
committerDavide Italiano <davide@freebsd.org>
Fri, 17 Mar 2017 22:19:20 +0000 (22:19 +0000)
llvm-svn: 298160

clang/lib/Sema/SemaCXXScopeSpec.cpp

index 6f1b8d2..57471de 100644 (file)
@@ -596,8 +596,8 @@ bool Sema::BuildCXXNestedNameSpecifier(Scope *S, NestedNameSpecInfo &IdInfo,
       }
       // Replacement '::' -> ':' is not allowed, just issue respective error.
       Diag(R.getNameLoc(), OnlyNamespace
-                               ? diag::err_expected_namespace_name
-                               : diag::err_expected_class_or_namespace)
+                               ? unsigned(diag::err_expected_namespace_name)
+                               : unsigned(diag::err_expected_class_or_namespace))
           << IdInfo.Identifier << getLangOpts().CPlusPlus;
       if (NamedDecl *ND = R.getAsSingle<NamedDecl>())
         Diag(ND->getLocation(), diag::note_entity_declared_at)