Tweak -Wuninitialized fixit for '_Bool' types to be initialized to 0, and C++ 'bool' types to false.

llvm-svn: 124356
This commit is contained in:
Ted Kremenek 2011-01-27 05:18:52 +00:00
parent 78e3760fde
commit 1373e5496b
1 changed files with 1 additions and 1 deletions

View File

@ -433,7 +433,7 @@ public:
else if (vdTy->isRealFloatingType()) {
initialization = " = 0.0";
}
else if (vdTy->isBooleanType()) {
else if (vdTy->isBooleanType() && S.Context.getLangOptions().CPlusPlus) {
initialization = " = false";
}
else if (vdTy->isScalarType()) {