aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-25 20:58:51 +0000
committerChris Lattner <sabre@nondot.org>2002-07-25 20:58:51 +0000
commitc1b2718acf9d566c26188f2968dece0bf3f187e3 (patch)
tree5f1189a6c4ee8e529ef775d9ee3f1381acfa288c /lib
parenteb6fb84f45118d8d1d58a6bf2b8ca0051832b2af (diff)
downloadexternal_llvm-c1b2718acf9d566c26188f2968dece0bf3f187e3.zip
external_llvm-c1b2718acf9d566c26188f2968dece0bf3f187e3.tar.gz
external_llvm-c1b2718acf9d566c26188f2968dece0bf3f187e3.tar.bz2
Fix typeo that caused bug:
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
Diffstat (limited to 'lib')
-rw-r--r--lib/VMCore/AsmWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp
index 091cda8..e33d9f4 100644
--- a/lib/VMCore/AsmWriter.cpp
+++ b/lib/VMCore/AsmWriter.cpp
@@ -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 {