From: John McCall Date: Thu, 8 Apr 2010 17:47:15 +0000 (+0000) Subject: Maybe we should store template arguments in the position we allocated for them X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33cab704d9b3b5b0218d578a20593bdfb0b1eb23;p=clang 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100784 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/DeclTemplate.h b/include/clang/AST/DeclTemplate.h index bb24c3f5f0..9f8d88fd49 100644 --- a/include/clang/AST/DeclTemplate.h +++ b/include/clang/AST/DeclTemplate.h @@ -412,7 +412,7 @@ class DependentFunctionTemplateSpecializationInfo { const TemplateArgumentLoc *getTemplateArgs() const { return reinterpret_cast( - getTemplates()[getNumTemplates()]); + &getTemplates()[getNumTemplates()]); } public: