projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb6fb84
)
Fix typeo that caused bug:
author
Chris Lattner
<sabre@nondot.org>
Thu, 25 Jul 2002 20:58:51 +0000
(20:58 +0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/lib/VMCore/AsmWriter.cpp
b/lib/VMCore/AsmWriter.cpp
index 091cda85ca7781e50c79e8073936cc847a544a71..e33d9f400ab4b584595b3f1dae09563afeab68ab 100644
(file)
--- 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 {