mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Fix a missing space after the return type in invoke statements.
This fixes PR2894. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57589 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1621,16 +1621,16 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
|
|||||||
// only do this if the first argument is a pointer to a nonvararg function,
|
// only do this if the first argument is a pointer to a nonvararg function,
|
||||||
// and if the return type is not a pointer to a function.
|
// and if the return type is not a pointer to a function.
|
||||||
//
|
//
|
||||||
|
Out << ' ';
|
||||||
if (!FTy->isVarArg() &&
|
if (!FTy->isVarArg() &&
|
||||||
(!isa<PointerType>(RetTy) ||
|
(!isa<PointerType>(RetTy) ||
|
||||||
!isa<FunctionType>(cast<PointerType>(RetTy)->getElementType()))) {
|
!isa<FunctionType>(cast<PointerType>(RetTy)->getElementType()))) {
|
||||||
Out << ' '; printType(RetTy);
|
printType(RetTy);
|
||||||
|
Out << ' ';
|
||||||
writeOperand(Operand, false);
|
writeOperand(Operand, false);
|
||||||
} else {
|
} else {
|
||||||
Out << ' ';
|
|
||||||
writeOperand(Operand, true);
|
writeOperand(Operand, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
Out << '(';
|
Out << '(';
|
||||||
for (unsigned op = 3, Eop = I.getNumOperands(); op < Eop; ++op) {
|
for (unsigned op = 3, Eop = I.getNumOperands(); op < Eop; ++op) {
|
||||||
if (op > 3)
|
if (op > 3)
|
||||||
|
Reference in New Issue
Block a user