[cfe-commits] r79148 - /cfe/trunk/lib/Sema/Sema.h
Eli Friedman
eli.friedman at gmail.com
Sat Aug 15 15:50:33 PDT 2009
Author: efriedma
Date: Sat Aug 15 17:50:33 2009
New Revision: 79148
URL: http://llvm.org/viewvc/llvm-project?rev=79148&view=rev
Log:
Add an explicit constructor to ActiveTemplateInstantiation which
initializes all the members; this fixes a valgrind error in the
regression tests.
Modified:
cfe/trunk/lib/Sema/Sema.h
Modified: cfe/trunk/lib/Sema/Sema.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/Sema.h?rev=79148&r1=79147&r2=79148&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/Sema.h (original)
+++ cfe/trunk/lib/Sema/Sema.h Sat Aug 15 17:50:33 2009
@@ -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)
More information about the cfe-commits
mailing list