1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Fix another isFirstClassType that now needs to be isSingleValueType.

This fixes recent CBE regressions.

llvm-svn: 51483
This commit is contained in:
Dan Gohman 2008-05-23 16:57:00 +00:00
parent e9217fe486
commit 1bff0b83b0

View File

@ -913,7 +913,7 @@ void CWriter::printConstant(Constant *CPV) {
<< *CE << "\n";
abort();
}
} else if (isa<UndefValue>(CPV) && CPV->getType()->isFirstClassType()) {
} else if (isa<UndefValue>(CPV) && CPV->getType()->isSingleValueType()) {
Out << "((";
printType(Out, CPV->getType()); // sign doesn't matter
Out << ")/*UNDEF*/";