mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +00:00
Fix another isFirstClassType that now needs to be isSingleValueType.
This fixes recent CBE regressions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51483 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -913,7 +913,7 @@ void CWriter::printConstant(Constant *CPV) {
|
|||||||
<< *CE << "\n";
|
<< *CE << "\n";
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
} else if (isa<UndefValue>(CPV) && CPV->getType()->isFirstClassType()) {
|
} else if (isa<UndefValue>(CPV) && CPV->getType()->isSingleValueType()) {
|
||||||
Out << "((";
|
Out << "((";
|
||||||
printType(Out, CPV->getType()); // sign doesn't matter
|
printType(Out, CPV->getType()); // sign doesn't matter
|
||||||
Out << ")/*UNDEF*/";
|
Out << ")/*UNDEF*/";
|
||||||
|
Reference in New Issue
Block a user