Workaround gcc 3.4.x bug

llvm-svn: 39792
This commit is contained in:
Anton Korobeynikov 2007-07-13 00:48:55 +00:00
parent 1c8b7d36e6
commit b6719478b9
1 changed files with 2 additions and 1 deletions

View File

@ -473,7 +473,8 @@ void QualType::getAsStringInternal(std::string &S) const {
}
// Print qualifiers as appropriate.
if (unsigned TQ = getQualifiers()) {
unsigned TQ = getQualifiers();
if (TQ) {
std::string TQS;
AppendTypeQualList(TQS, TQ);
if (!S.empty())