From: Richard Smith Date: Thu, 20 Dec 2012 02:47:01 +0000 (+0000) Subject: Fix another uninitialized bool member bug found by -fsanitize=bool. This one X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a89479081e0ee1589736d987771de609c5505832;p=clang Fix another uninitialized bool member bug found by -fsanitize=bool. This one appears to currently be benign (we happen to test the flags in the right order, so we never depend on the uninitialized value). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170640 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ASTDiagnostic.cpp b/lib/AST/ASTDiagnostic.cpp index a61abf7e34..6fd07e1ef3 100644 --- a/lib/AST/ASTDiagnostic.cpp +++ b/lib/AST/ASTDiagnostic.cpp @@ -447,6 +447,7 @@ class TemplateDiff { DiffNode(unsigned ParentNode = 0) : NextNode(0), ChildNode(0), ParentNode(ParentNode), FromType(), ToType(), FromExpr(0), ToExpr(0), FromTD(0), ToTD(0), + IsValidFromInt(false), IsValidToInt(false), FromDefault(false), ToDefault(false), Same(false) { } };