[cfe-commits] r150940 - /cfe/trunk/lib/Parse/ParseExprCXX.cpp

Benjamin Kramer benny.kra at googlemail.com
Sun Feb 19 15:37:40 PST 2012


Author: d0k
Date: Sun Feb 19 17:37:39 2012
New Revision: 150940

URL: http://llvm.org/viewvc/llvm-project?rev=150940&view=rev
Log:
Set the location of the template keyword when allocating a new TemplateIdAnnotation.

Found by valgrind.

Modified:
    cfe/trunk/lib/Parse/ParseExprCXX.cpp

Modified: cfe/trunk/lib/Parse/ParseExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseExprCXX.cpp?rev=150940&r1=150939&r2=150940&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseExprCXX.cpp (original)
+++ cfe/trunk/lib/Parse/ParseExprCXX.cpp Sun Feb 19 17:37:39 2012
@@ -1714,6 +1714,7 @@
     }
 
     TemplateId->SS = SS;
+    TemplateId->TemplateKWLoc = TemplateKWLoc;
     TemplateId->Template = Template;
     TemplateId->Kind = TNK;
     TemplateId->LAngleLoc = LAngleLoc;





More information about the cfe-commits mailing list