forked from OSchip/llvm-project
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:
parent
78e3760fde
commit
1373e5496b
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue