diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-19 23:37:39 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-19 23:37:39 +0000 |
commit | 2b28bf1a8fa6e1c598805374f29e4fbf45e751fe (patch) | |
tree | d0607d441401956f8f881d71024a3bec59643f2f /lib/Parse/ParseExprCXX.cpp | |
parent | 607098c45917ff2472822c463eb0a83f99845f07 (diff) |
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
Diffstat (limited to 'lib/Parse/ParseExprCXX.cpp')
-rw-r--r-- | lib/Parse/ParseExprCXX.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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; |