summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/AsmWriter.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-03-19 13:50:02 +0000
committerGabor Greif <ggreif@gmail.com>2010-03-19 13:50:02 +0000
commit6c56ed847e14372558559bd7e0d0b730afe10bc1 (patch)
treee899a491aee31babb6d1c3e0bda3f139e700d8fb /llvm/lib/VMCore/AsmWriter.cpp
parent8335f9c0bf7ea540bde0b586dbffbf1d9fccc9fd (diff)
downloadbcm5719-llvm-6c56ed847e14372558559bd7e0d0b730afe10bc1.tar.gz
bcm5719-llvm-6c56ed847e14372558559bd7e0d0b730afe10bc1.zip
back out r98957, it broke http://smooshlab.apple.com:8010/builders/clang-x86_64-darwin10-fnt/builds/703 in the nightly test suite
llvm-svn: 98958
Diffstat (limited to 'llvm/lib/VMCore/AsmWriter.cpp')
-rw-r--r--llvm/lib/VMCore/AsmWriter.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp
index bbe6143a136..0eb9f020dc9 100644
--- a/llvm/lib/VMCore/AsmWriter.cpp
+++ b/llvm/lib/VMCore/AsmWriter.cpp
@@ -1875,7 +1875,6 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
if (PAL.getFnAttributes() != Attribute::None)
Out << ' ' << Attribute::getAsString(PAL.getFnAttributes());
} else if (const InvokeInst *II = dyn_cast<InvokeInst>(&I)) {
- Operand = II->getCalledValue();
const PointerType *PTy = cast<PointerType>(Operand->getType());
const FunctionType *FTy = cast<FunctionType>(PTy->getElementType());
const Type *RetTy = FTy->getReturnType();
@@ -1913,10 +1912,10 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
writeOperand(Operand, true);
}
Out << '(';
- for (unsigned op = 0, Eop = I.getNumOperands() - 3; op < Eop; ++op) {
- if (op)
+ for (unsigned op = 3, Eop = I.getNumOperands(); op < Eop; ++op) {
+ if (op > 3)
Out << ", ";
- writeParamOperand(I.getOperand(op), PAL.getParamAttributes(op + 1));
+ writeParamOperand(I.getOperand(op), PAL.getParamAttributes(op-2));
}
Out << ')';
OpenPOWER on IntegriCloud