aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-01-21 18:45:48 +0000
committerChris Lattner <sabre@nondot.org>2009-01-21 18:45:48 +0000
commitfd52fc7cb1405f05d48f2bef284ca76df00b6649 (patch)
tree7b356a6f38b39a6d571036e2a2599e03a026e3f2
parent69960f9cd88d2d0c3d49f156e77e84665c24ed92 (diff)
initialialize some ivars in ctor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62700 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/APValue.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/clang/AST/APValue.h b/include/clang/AST/APValue.h
index 8fbb04e975..d88757de1a 100644
--- a/include/clang/AST/APValue.h
+++ b/include/clang/AST/APValue.h
@@ -54,6 +54,7 @@ private:
struct Vec {
APValue *Elts;
unsigned NumElts;
+ Vec() : Elts(0), NumElts(0) {}
~Vec() { delete[] Elts; }
};