diff options
author | dim <dim@FreeBSD.org> | 2015-02-14 12:18:48 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2015-02-14 12:18:48 +0000 |
commit | ff28d95d1f024411955913aaa68c17f2b09c46fd (patch) | |
tree | dfd4e4f0fa9ce6e010e098662d5f00a37c9ff0e3 /lib/AST/DeclCXX.cpp | |
parent | cf8e1ca250cdf4ade1e7d628e56040eb27797b5d (diff) | |
download | FreeBSD-src-ff28d95d1f024411955913aaa68c17f2b09c46fd.zip FreeBSD-src-ff28d95d1f024411955913aaa68c17f2b09c46fd.tar.gz |
Vendor import of clang RELEASE_360/rc3 tag r229040 (effectively, 3.6.0 RC3):
https://llvm.org/svn/llvm-project/cfe/tags/RELEASE_360/rc3@229040
Diffstat (limited to 'lib/AST/DeclCXX.cpp')
-rw-r--r-- | lib/AST/DeclCXX.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/AST/DeclCXX.cpp b/lib/AST/DeclCXX.cpp index a6d9d41..9af8c4b 100644 --- a/lib/AST/DeclCXX.cpp +++ b/lib/AST/DeclCXX.cpp @@ -1693,12 +1693,12 @@ const Type *CXXCtorInitializer::getBaseClass() const { } SourceLocation CXXCtorInitializer::getSourceLocation() const { - if (isAnyMemberInitializer()) - return getMemberLocation(); - if (isInClassMemberInitializer()) return getAnyMember()->getLocation(); + if (isAnyMemberInitializer()) + return getMemberLocation(); + if (TypeSourceInfo *TSInfo = Initializee.get<TypeSourceInfo*>()) return TSInfo->getTypeLoc().getLocalSourceRange().getBegin(); |