projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79ee0c1
)
[Sema] Unbreak GCC -Werror build (enum compare).
author
Davide Italiano
<davide@freebsd.org>
Fri, 17 Mar 2017 22:19:20 +0000
(22:19 +0000)
committer
Davide Italiano
<davide@freebsd.org>
Fri, 17 Mar 2017 22:19:20 +0000
(22:19 +0000)
llvm-svn: 298160
clang/lib/Sema/SemaCXXScopeSpec.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Sema/SemaCXXScopeSpec.cpp
b/clang/lib/Sema/SemaCXXScopeSpec.cpp
index
6f1b8d2
..
57471de
100644
(file)
--- a/
clang/lib/Sema/SemaCXXScopeSpec.cpp
+++ b/
clang/lib/Sema/SemaCXXScopeSpec.cpp
@@
-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)