summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/tools/clang/lib/AST/CommentSema.cpp
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2019-06-23 21:36:31 +0000
committerpatrick <patrick@openbsd.org>2019-06-23 21:36:31 +0000
commit23f101f37937a1bd4a29726cab2f76e0fb038b35 (patch)
treef7da7d6b32c2e07114da399150bfa88d72187012 /gnu/llvm/tools/clang/lib/AST/CommentSema.cpp
parentsort previous; ok deraadt (diff)
downloadwireguard-openbsd-23f101f37937a1bd4a29726cab2f76e0fb038b35.tar.xz
wireguard-openbsd-23f101f37937a1bd4a29726cab2f76e0fb038b35.zip
Import LLVM 8.0.0 release including clang, lld and lldb.
Diffstat (limited to 'gnu/llvm/tools/clang/lib/AST/CommentSema.cpp')
-rw-r--r--gnu/llvm/tools/clang/lib/AST/CommentSema.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/gnu/llvm/tools/clang/lib/AST/CommentSema.cpp b/gnu/llvm/tools/clang/lib/AST/CommentSema.cpp
index 4bc98bf1076..88588a7a89e 100644
--- a/gnu/llvm/tools/clang/lib/AST/CommentSema.cpp
+++ b/gnu/llvm/tools/clang/lib/AST/CommentSema.cpp
@@ -703,10 +703,9 @@ void Sema::checkDeprecatedCommand(const BlockCommandComment *Command) {
SmallString<64> TextToInsert(" ");
TextToInsert += AttributeSpelling;
- Diag(FD->getLocEnd(),
- diag::note_add_deprecation_attr)
- << FixItHint::CreateInsertion(FD->getLocEnd().getLocWithOffset(1),
- TextToInsert);
+ Diag(FD->getEndLoc(), diag::note_add_deprecation_attr)
+ << FixItHint::CreateInsertion(FD->getEndLoc().getLocWithOffset(1),
+ TextToInsert);
}
}