aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-12-20 02:47:01 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-12-20 02:47:01 +0000
commita89479081e0ee1589736d987771de609c5505832 (patch)
treec2f8678fdeda8c514a270fd310611a662aed49ae
parent3624e9e55d98507863d0731a0942cd874f2a1574 (diff)
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
-rw-r--r--lib/AST/ASTDiagnostic.cpp1
1 files changed, 1 insertions, 0 deletions
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) { }
};