Fix typeo that caused bug:

test/Regression/Assembler/2002-07-25-ReturnPtrFunction.llx

llvm-svn: 3103
This commit is contained in:
Chris Lattner 2002-07-25 20:58:51 +00:00
parent 6fe2906627
commit d9a36a63bb
1 changed files with 1 additions and 1 deletions

View File

@ -750,7 +750,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
//
if (RetTy && MTy && !MTy->isVarArg() &&
(!isa<PointerType>(RetTy) ||
!isa<FunctionType>(cast<PointerType>(RetTy)))) {
!isa<FunctionType>(cast<PointerType>(RetTy)->getElementType()))) {
Out << " "; printType(RetTy);
writeOperand(Operand, false);
} else {