[cfe-commits] r74989 - /cfe/trunk/include/clang/AST/PrettyPrinter.h
Argiris Kirtzidis
akyrtzi at gmail.com
Tue Jul 7 19:17:42 PDT 2009
Author: akirtzidis
Date: Tue Jul 7 21:17:42 2009
New Revision: 74989
URL: http://llvm.org/viewvc/llvm-project?rev=74989&view=rev
Log:
Initialize the ConstantArraySizeAsWritten field of PrintingPolicy class.
It contained garbage since the constructor didn't initialize it and caused test/Sema/array-constraint.c to randomly fail.
Modified:
cfe/trunk/include/clang/AST/PrettyPrinter.h
Modified: cfe/trunk/include/clang/AST/PrettyPrinter.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/PrettyPrinter.h?rev=74989&r1=74988&r2=74989&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/PrettyPrinter.h (original)
+++ cfe/trunk/include/clang/AST/PrettyPrinter.h Tue Jul 7 21:17:42 2009
@@ -36,7 +36,8 @@
/// \brief Create a default printing policy for C.
PrintingPolicy(const LangOptions &LO)
: Indentation(2), LangOpts(LO), SuppressSpecifiers(false),
- SuppressTag(false), SuppressTagKind(false), Dump(false) { }
+ SuppressTag(false), SuppressTagKind(false), Dump(false),
+ ConstantArraySizeAsWritten(false) { }
/// \brief The number of spaces to use to indent each line.
unsigned Indentation : 8;
More information about the cfe-commits
mailing list