[cfe-commits] r62700 - /cfe/trunk/include/clang/AST/APValue.h

Chris Lattner sabre at nondot.org
Wed Jan 21 10:45:48 PST 2009


Author: lattner
Date: Wed Jan 21 12:45:48 2009
New Revision: 62700

URL: http://llvm.org/viewvc/llvm-project?rev=62700&view=rev
Log:
initialialize some ivars in ctor.

Modified:
    cfe/trunk/include/clang/AST/APValue.h

Modified: cfe/trunk/include/clang/AST/APValue.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/APValue.h?rev=62700&r1=62699&r2=62700&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/APValue.h (original)
+++ cfe/trunk/include/clang/AST/APValue.h Wed Jan 21 12:45:48 2009
@@ -54,6 +54,7 @@
   struct Vec {
     APValue *Elts;
     unsigned NumElts;
+    Vec() : Elts(0), NumElts(0) {}
     ~Vec() { delete[] Elts; }
   };
   





More information about the cfe-commits mailing list