aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Analysis/Support
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-01-27 10:28:04 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-01-27 10:28:04 +0000
commit9d883b5b3763605cd6850b49fd3b2613074e83a0 (patch)
treeee1bbcb6df78f0c2e8587f0744ae3ec6c7789db9 /include/clang/Analysis/Support
parent9afb227116f675fdaaa9552ea93e4190253d77df (diff)
Silence a GCC warning about uninitialized variables. The first user of this
showed up with a primitive type. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94674 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/Support')
-rw-r--r--include/clang/Analysis/Support/Optional.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Analysis/Support/Optional.h b/include/clang/Analysis/Support/Optional.h
index b98d382700..a4e6d519a0 100644
--- a/include/clang/Analysis/Support/Optional.h
+++ b/include/clang/Analysis/Support/Optional.h
@@ -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) {