Author: lattner
Date: Sat Sep 4 19:22:25 2010
New Revision: 113093
URL: http://llvm.org/viewvc/llvm-project?rev=113093&view=rev
Log:
"const _Complex float *" not "_Complex float const *"
Modified:
cfe/trunk/lib/AST/TypePrinter.cpp
Modified: cfe/trunk/lib/AST/TypePrinter.cpp
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/TypePrinter.cpp?rev=113093&r1=113092&r2=113093&view=diff
==============================================================================
--- cfe/trunk/lib/AST/TypePrinter.cpp (original)
+++ cfe/trunk/lib/AST/TypePrinter.cpp Sat Sep 4 19:22:25 2010
@@ -73,7 +73,8 @@
// "int * const", printing "const int *" is different. Only do this when the
// type expands to a simple string.
bool CanPrefixQualifiers =
- isa<BuiltinType>(T) || isa<TypedefType>(T) || isa<TagType>(T);
+ isa<BuiltinType>(T) || isa<TypedefType>(T) || isa<TagType>(T) ||
+ isa<ComplexType>(T);
if (!CanPrefixQualifiers && !Quals.empty()) {
std::string TQS;
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits