summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitd9a36a63bbe343a9c9fdefc599f897b1fa4e779e (patch)
tree9fddc08fb8ea844a7591966b49c0587abd73775e /llvm/lib
parent6fe2906627913776b54821e361421ed0601eaddf (diff)
downloadbcm5719-llvm-d9a36a63bbe343a9c9fdefc599f897b1fa4e779e.tar.gz
bcm5719-llvm-d9a36a63bbe343a9c9fdefc599f897b1fa4e779e.zip
Fix typeo that caused bug:
test/Regression/Assembler/2002-07-25-ReturnPtrFunction.llx llvm-svn: 3103
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/AsmWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp
index 091cda85ca7..e33d9f400ab 100644
--- a/llvm/lib/VMCore/AsmWriter.cpp
+++ b/llvm/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 {
OpenPOWER on IntegriCloud