[cfe-commits] r100784 - /cfe/trunk/include/clang/AST/DeclTemplate.h

John McCall rjmccall at apple.com
Thu Apr 8 10:47:15 PDT 2010


Author: rjmccall
Date: Thu Apr  8 12:47:15 2010
New Revision: 100784

URL: http://llvm.org/viewvc/llvm-project?rev=100784&view=rev
Log:
Maybe we should store template arguments in the position we allocated for them
instead of scribbling over random memory.  Maybe.

Hopefully this fixes the -vg buildbot.


Modified:
    cfe/trunk/include/clang/AST/DeclTemplate.h

Modified: cfe/trunk/include/clang/AST/DeclTemplate.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclTemplate.h?rev=100784&r1=100783&r2=100784&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DeclTemplate.h (original)
+++ cfe/trunk/include/clang/AST/DeclTemplate.h Thu Apr  8 12:47:15 2010
@@ -412,7 +412,7 @@
 
   const TemplateArgumentLoc *getTemplateArgs() const {
     return reinterpret_cast<const TemplateArgumentLoc*>(
-             getTemplates()[getNumTemplates()]);
+             &getTemplates()[getNumTemplates()]);
   }
 
 public:





More information about the cfe-commits mailing list