[cfe-commits] r39461 - /cfe/cfe/trunk/AST/Type.cpp
clattner at cs.uiuc.edu
clattner at cs.uiuc.edu
Wed Jul 11 09:44:40 PDT 2007
Author: clattner
Date: Wed Jul 11 11:44:40 2007
New Revision: 39461
URL: http://llvm.org/viewvc/llvm-project?rev=39461&view=rev
Log:
eliminate an extraneous space when printing qualified types in some cases.
Modified:
cfe/cfe/trunk/AST/Type.cpp
Modified: cfe/cfe/trunk/AST/Type.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/AST/Type.cpp?rev=39461&r1=39460&r2=39461&view=diff
==============================================================================
--- cfe/cfe/trunk/AST/Type.cpp (original)
+++ cfe/cfe/trunk/AST/Type.cpp Wed Jul 11 11:44:40 2007
@@ -405,7 +405,10 @@
if (unsigned TQ = getQualifiers()) {
std::string TQS;
AppendTypeQualList(TQS, TQ);
- S = TQS + ' ' + S;
+ if (!S.empty())
+ S = TQS + ' ' + S;
+ else
+ S = TQS;
}
getTypePtr()->getAsStringInternal(S);
More information about the cfe-commits
mailing list