]> granicus.if.org Git - clang/commitdiff
Fix another uninitialized bool member bug found by -fsanitize=bool. This one
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 20 Dec 2012 02:47:01 +0000 (02:47 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 20 Dec 2012 02:47:01 +0000 (02:47 +0000)
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

lib/AST/ASTDiagnostic.cpp

index a61abf7e34cd4ac6af02f92f686f4f747aa2fc87..6fd07e1ef33440cdfb590dd95d8411e025bb508f 100644 (file)
@@ -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) { }
     };