forked from OSchip/llvm-project
Teach -Wuninitialized to suggest "= false" for initializing bool variables.
llvm-svn: 124352
This commit is contained in:
parent
2903675929
commit
064b0345f5
|
@ -433,6 +433,9 @@ public:
|
||||||
else if (vdTy->isRealFloatingType()) {
|
else if (vdTy->isRealFloatingType()) {
|
||||||
initialization = " = 0.0";
|
initialization = " = 0.0";
|
||||||
}
|
}
|
||||||
|
else if (vdTy->isBooleanType()) {
|
||||||
|
initialization = " = false";
|
||||||
|
}
|
||||||
else if (vdTy->isScalarType()) {
|
else if (vdTy->isScalarType()) {
|
||||||
initialization = " = 0";
|
initialization = " = 0";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue