summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplate.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-04-22 23:23:42 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-04-22 23:23:42 +0000
commit40bcfd71b6349156d86ec8b71b3c9570ee53e3a8 (patch)
tree67704e07e0b29db7dc81b3954a60ed5d38a4bfe7 /clang/lib/Sema/SemaTemplate.cpp
parent6e3cf2ba8561415c40d1eba8c4cbd850637d4147 (diff)
downloadbcm5719-llvm-40bcfd71b6349156d86ec8b71b3c9570ee53e3a8.tar.gz
bcm5719-llvm-40bcfd71b6349156d86ec8b71b3c9570ee53e3a8.zip
When modifying an implicit instantiation with information from an explicit one, make sure to reset the "right brace" location.
Otherwise the source range of the explicit instantiation may become invalid (begin location will be after the end location). rdar://13706991 llvm-svn: 180070
Diffstat (limited to 'clang/lib/Sema/SemaTemplate.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplate.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp
index ae091e3da34..b9695cc1e16 100644
--- a/clang/lib/Sema/SemaTemplate.cpp
+++ b/clang/lib/Sema/SemaTemplate.cpp
@@ -6460,6 +6460,7 @@ Sema::ActOnExplicitInstantiation(Scope *S,
// Set source locations for keywords.
Specialization->setExternLoc(ExternLoc);
Specialization->setTemplateKeywordLoc(TemplateLoc);
+ Specialization->setRBraceLoc(SourceLocation());
if (Attr)
ProcessDeclAttributeList(S, Specialization, Attr);
OpenPOWER on IntegriCloud