forked from OSchip/llvm-project
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:
parent
c07bd40b3e
commit
f6442e7b2e
clang/include/clang/Analysis/Support
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue