summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-09-05 00:22:25 +0000
committerChris Lattner <sabre@nondot.org>2010-09-05 00:22:25 +0000
commitc4bf372e4327b30c940527a1c99ae34e9ca18da0 (patch)
tree0064c3c7bbbdfd3892af9d09622cc1f6c386e2dc /clang
parent24b89469acd5f386b0080f9baabaceda8e261314 (diff)
downloadbcm5719-llvm-c4bf372e4327b30c940527a1c99ae34e9ca18da0.tar.gz
bcm5719-llvm-c4bf372e4327b30c940527a1c99ae34e9ca18da0.zip
"const _Complex float *" not "_Complex float const *"
llvm-svn: 113093
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/AST/TypePrinter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/AST/TypePrinter.cpp b/clang/lib/AST/TypePrinter.cpp
index e0805715520..f33c5ae882f 100644
--- a/clang/lib/AST/TypePrinter.cpp
+++ b/clang/lib/AST/TypePrinter.cpp
@@ -73,7 +73,8 @@ void TypePrinter::Print(QualType T, std::string &S) {
// "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;
OpenPOWER on IntegriCloud