]> granicus.if.org Git - clang/commitdiff
initialialize some ivars in ctor.
authorChris Lattner <sabre@nondot.org>
Wed, 21 Jan 2009 18:45:48 +0000 (18:45 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 21 Jan 2009 18:45:48 +0000 (18:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62700 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/APValue.h

index 8fbb04e9754f21193c2ec6e5e6f5a90194b27670..d88757de1a3d58c26e368bb42796781e2b1d68cd 100644 (file)
@@ -54,6 +54,7 @@ private:
   struct Vec {
     APValue *Elts;
     unsigned NumElts;
+    Vec() : Elts(0), NumElts(0) {}
     ~Vec() { delete[] Elts; }
   };