diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-08-15 22:50:33 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-08-15 22:50:33 +0000 |
commit | 2ebcc6b9a240e290a41c6e86a88a4d4ed35e9650 (patch) | |
tree | ba11e2fec1d06f4303e7e572722c65fc04bf2f1c | |
parent | 7a039eb88d03b35311cb2c99f84eb76634f37a71 (diff) |
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
-rw-r--r-- | lib/Sema/Sema.h | 3 |
1 files changed, 3 insertions, 0 deletions
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) |