diff options
author | Stephen Kelly <steveire@gmail.com> | 2018-07-30 20:39:14 +0000 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2018-07-30 20:39:14 +0000 |
commit | fbe44001917342dd307ec93946882706aa907813 (patch) | |
tree | 3838718f92a9454d06ccc226b1ee044e0d7aed8d /lib/AST/DeclarationName.cpp | |
parent | 75e59153ea71a3254d8dac0d8d0f15a60314048c (diff) | |
download | clang-fbe44001917342dd307ec93946882706aa907813.tar.gz |
Avoid returning an invalid end source loc
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@338301 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclarationName.cpp')
-rw-r--r-- | lib/AST/DeclarationName.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/DeclarationName.cpp b/lib/AST/DeclarationName.cpp index 78c4b9707e..9866d92f61 100644 --- a/lib/AST/DeclarationName.cpp +++ b/lib/AST/DeclarationName.cpp @@ -689,7 +689,7 @@ void DeclarationNameInfo::printName(raw_ostream &OS) const { llvm_unreachable("Unexpected declaration name kind"); } -SourceLocation DeclarationNameInfo::getEndLoc() const { +SourceLocation DeclarationNameInfo::getEndLocPrivate() const { switch (Name.getNameKind()) { case DeclarationName::Identifier: case DeclarationName::CXXDeductionGuideName: |