[cfe-commits] r170640 - /cfe/trunk/lib/AST/ASTDiagnostic.cpp
Richard Smith
richard-llvm at metafoo.co.uk
Wed Dec 19 18:47:01 PST 2012
Author: rsmith
Date: Wed Dec 19 20:47:01 2012
New Revision: 170640
URL: http://llvm.org/viewvc/llvm-project?rev=170640&view=rev
Log:
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).
Modified:
cfe/trunk/lib/AST/ASTDiagnostic.cpp
Modified: cfe/trunk/lib/AST/ASTDiagnostic.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTDiagnostic.cpp?rev=170640&r1=170639&r2=170640&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTDiagnostic.cpp (original)
+++ cfe/trunk/lib/AST/ASTDiagnostic.cpp Wed Dec 19 20:47:01 2012
@@ -447,6 +447,7 @@
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) { }
};
More information about the cfe-commits
mailing list