commit | de9ed71c696bee936a21323f61548164de0eda13 | [log] [tgz] |
---|---|---|
author | Enea Zaffanella <zaffanella@cs.unipr.it> | Fri Jul 19 18:02:36 2013 +0000 |
committer | Enea Zaffanella <zaffanella@cs.unipr.it> | Fri Jul 19 18:02:36 2013 +0000 |
tree | dfd999799c6e4e6a17cae72cbbc98e24700c83aa | |
parent | e36d31edd6020989bdb39f82dea54ef0e747e994 [diff] [blame] |
Fix source range of implicitly instantiated friend declaration. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186702 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaTemplateInstantiateDecl.cpp b/lib/Sema/SemaTemplateInstantiateDecl.cpp index 420ccb1..d780a3b 100644 --- a/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/lib/Sema/SemaTemplateInstantiateDecl.cpp
@@ -1216,6 +1216,7 @@ D->getCanonicalDecl()->getStorageClass(), D->isInlineSpecified(), D->hasWrittenPrototype(), D->isConstexpr()); + Function->setRangeEnd(D->getSourceRange().getEnd()); if (D->isInlined()) Function->setImplicitlyInline();