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:
parent
e9217fe486
commit
1bff0b83b0
@ -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*/";
|
||||
|
Loading…
Reference in New Issue
Block a user