summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-10-15 20:57:52 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-10-15 20:57:52 +0000
commitbbd469bef315c36ca0eae73eceb160174fee9f12 (patch)
tree014d83abd655b285fb04b066c0211a82fe19f590 /clang/tools/libclang
parent3c6aa277b91e825bed8510f8060fcd643782678d (diff)
downloadbcm5719-llvm-bbd469bef315c36ca0eae73eceb160174fee9f12.tar.gz
bcm5719-llvm-bbd469bef315c36ca0eae73eceb160174fee9f12.zip
Fixes location of overriding declaration with no comment
of their own. llvm-svn: 165972
Diffstat (limited to 'clang/tools/libclang')
-rw-r--r--clang/tools/libclang/CXComment.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/libclang/CXComment.cpp b/clang/tools/libclang/CXComment.cpp
index 00171ebe470..5b722a5a155 100644
--- a/clang/tools/libclang/CXComment.cpp
+++ b/clang/tools/libclang/CXComment.cpp
@@ -1096,7 +1096,7 @@ void CommentASTToXMLConverter::visitFullComment(const FullComment *C) {
{
// Print line and column number.
- SourceLocation Loc = DI->CommentDecl->getLocation();
+ SourceLocation Loc = DI->Loc;
std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc);
FileID FID = LocInfo.first;
unsigned FileOffset = LocInfo.second;
OpenPOWER on IntegriCloud