summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang/CXComment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/tools/libclang/CXComment.cpp')
-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