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 98fa698..9432318 100644
--- a/lib/Sema/Sema.h
+++ b/lib/Sema/Sema.h
@@ -2548,6 +2548,9 @@
/// 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)