Fix typeo that caused bug:
authorChris Lattner <sabre@nondot.org>
Thu, 25 Jul 2002 20:58:51 +0000 (20:58 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 25 Jul 2002 20:58:51 +0000 (20:58 +0000)
test/Regression/Assembler/2002-07-25-ReturnPtrFunction.llx

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3103 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index 091cda85ca7781e50c79e8073936cc847a544a71..e33d9f400ab4b584595b3f1dae09563afeab68ab 100644 (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 {