Silence a GCC warning about uninitialized variables. The first user of this

showed up with a primitive type.

llvm-svn: 94674
This commit is contained in:
Chandler Carruth 2010-01-27 10:28:04 +00:00
parent c07bd40b3e
commit f6442e7b2e
1 changed files with 1 additions and 1 deletions
clang/include/clang/Analysis/Support

View File

@ -23,7 +23,7 @@ class Optional {
T x;
unsigned hasVal : 1;
public:
explicit Optional() : hasVal(false) {}
explicit Optional() : x(), hasVal(false) {}
Optional(const T &y) : x(y), hasVal(true) {}
static inline Optional create(const T* y) {