diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-04-05 23:13:23 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-04-05 23:13:23 +0000 |
commit | bf9658c3c200ee19bf0b6b157149f2376e39d270 (patch) | |
tree | c6d32c9cd0ec93988cd6d3e9897550902c447ca0 /lib/Sema/SemaDeclCXX.cpp | |
parent | bc1029b4a47282cb4ce27c7014acb864b10a4043 (diff) |
Point the caret at the error for the 'expected namespace name' diagnostic in
a namespace alias declaration.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154138 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclCXX.cpp')
-rw-r--r-- | lib/Sema/SemaDeclCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp index e5dc4f5ac9..fb34126943 100644 --- a/lib/Sema/SemaDeclCXX.cpp +++ b/lib/Sema/SemaDeclCXX.cpp @@ -6742,7 +6742,7 @@ Decl *Sema::ActOnNamespaceAliasDef(Scope *S, if (R.empty()) { if (!TryNamespaceTypoCorrection(*this, R, S, SS, IdentLoc, Ident)) { - Diag(NamespaceLoc, diag::err_expected_namespace_name) << SS.getRange(); + Diag(IdentLoc, diag::err_expected_namespace_name) << SS.getRange(); return 0; } } |