aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Comment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/AST/Comment.cpp')
-rw-r--r--lib/AST/Comment.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/AST/Comment.cpp b/lib/AST/Comment.cpp
index a235b60bea..e51efd9e11 100644
--- a/lib/AST/Comment.cpp
+++ b/lib/AST/Comment.cpp
@@ -156,7 +156,8 @@ void DeclInfo::fill() {
IsFilled = true;
return;
}
-
+ Loc = CommentDecl->getLocation();
+
Decl::Kind K = CommentDecl->getKind();
switch (K) {
default: