]> granicus.if.org Git - clang/commitdiff
Set the location of the template keyword when allocating a new TemplateIdAnnotation.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 19 Feb 2012 23:37:39 +0000 (23:37 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 19 Feb 2012 23:37:39 +0000 (23:37 +0000)
Found by valgrind.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150940 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Parse/ParseExprCXX.cpp

index 76cc39286644d1c915994029e59ab11823ebaf34..0d33e30183c8a9875d2c9888200e83f5d7c6c1aa 100644 (file)
@@ -1714,6 +1714,7 @@ bool Parser::ParseUnqualifiedIdTemplateId(CXXScopeSpec &SS,
     }
 
     TemplateId->SS = SS;
+    TemplateId->TemplateKWLoc = TemplateKWLoc;
     TemplateId->Template = Template;
     TemplateId->Kind = TNK;
     TemplateId->LAngleLoc = LAngleLoc;