From 2b28bf1a8fa6e1c598805374f29e4fbf45e751fe Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 19 Feb 2012 23:37:39 +0000 Subject: [PATCH] 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 --- lib/Parse/ParseExprCXX.cpp | 1 + 1 file changed, 1 insertion(+) 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; -- 2.50.1