diff options
author | Tanya Lattner <tonic@nondot.org> | 2008-10-17 17:58:39 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2008-10-17 17:58:39 +0000 |
commit | a9616b85c76df1a15606073ac9d714f094b0b855 (patch) | |
tree | 23f6c0854c151a643278e5816d69031d32ded05f | |
parent | b90586744b8669b7490055b799fcd1c7e404d74b (diff) | |
download | llvm-a9616b85c76df1a15606073ac9d714f094b0b855.tar.gz |
Merge from mainline.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_24@57703 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index c3186f69a5ca..ac461990b3d2 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -1666,16 +1666,16 @@ void AssemblyWriter::printInstruction(const Instruction &I) { // only do this if the first argument is a pointer to a nonvararg function, // and if the return type is not a pointer to a function. // + Out << ' '; if (!FTy->isVarArg() && (!isa<PointerType>(RetTy) || !isa<FunctionType>(cast<PointerType>(RetTy)->getElementType()))) { - Out << ' '; printType(RetTy); + printType(RetTy); + Out << ' '; writeOperand(Operand, false); } else { - Out << ' '; writeOperand(Operand, true); } - Out << '('; for (unsigned op = 3, Eop = I.getNumOperands(); op < Eop; ++op) { if (op > 3) |