From: Benjamin Kramer Date: Sun, 19 Feb 2012 23:37:39 +0000 (+0000) Subject: Set the location of the template keyword when allocating a new TemplateIdAnnotation. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b28bf1a8fa6e1c598805374f29e4fbf45e751fe;p=clang Set the location of the template keyword when allocating a new TemplateIdAnnotation. Found by valgrind. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150940 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Parse/ParseExprCXX.cpp b/lib/Parse/ParseExprCXX.cpp index 76cc392866..0d33e30183 100644 --- a/lib/Parse/ParseExprCXX.cpp +++ b/lib/Parse/ParseExprCXX.cpp @@ -1714,6 +1714,7 @@ bool Parser::ParseUnqualifiedIdTemplateId(CXXScopeSpec &SS, } TemplateId->SS = SS; + TemplateId->TemplateKWLoc = TemplateKWLoc; TemplateId->Template = Template; TemplateId->Kind = TNK; TemplateId->LAngleLoc = LAngleLoc;