From: Eli Friedman Date: Sat, 15 Aug 2009 22:50:33 +0000 (+0000) Subject: Add an explicit constructor to ActiveTemplateInstantiation which X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2ebcc6b9a240e290a41c6e86a88a4d4ed35e9650;p=clang Add an explicit constructor to ActiveTemplateInstantiation which initializes all the members; this fixes a valgrind error in the regression tests. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79148 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/Sema.h b/lib/Sema/Sema.h index 98fa698a8d..943231811b 100644 --- a/lib/Sema/Sema.h +++ b/lib/Sema/Sema.h @@ -2548,6 +2548,9 @@ public: /// template instantiation. SourceRange InstantiationRange; + ActiveTemplateInstantiation() : Kind(TemplateInstantiation), Entity(0), + TemplateArgs(0), NumTemplateArgs(0) {} + friend bool operator==(const ActiveTemplateInstantiation &X, const ActiveTemplateInstantiation &Y) { if (X.Kind != Y.Kind)