summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2018-07-30 20:39:14 +0000
committerStephen Kelly <steveire@gmail.com>2018-07-30 20:39:14 +0000
commitf50288c236a66d280465d49c04f67fe89d6f5517 (patch)
tree0a2b71e5a5c3821e276f17a93e33d2f61848c02b /clang/lib
parent6737b3a6a144048341985a1733dac6f18bc7ce39 (diff)
downloadbcm5719-llvm-f50288c236a66d280465d49c04f67fe89d6f5517.tar.gz
bcm5719-llvm-f50288c236a66d280465d49c04f67fe89d6f5517.zip
Avoid returning an invalid end source loc
llvm-svn: 338301
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/DeclarationName.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/DeclarationName.cpp b/clang/lib/AST/DeclarationName.cpp
index 78c4b9707ef..9866d92f61e 100644
--- a/clang/lib/AST/DeclarationName.cpp
+++ b/clang/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:
OpenPOWER on IntegriCloud