From 6aa83bd45960575d8b09cb3b203e2434a9d3a604 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Wed, 7 Jan 2009 23:07:22 +0000 Subject: revert to functionally equivalent formulation llvm-svn: 61895 --- llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp') diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index ed9d4db8c64..81a1a379969 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -833,7 +833,7 @@ static void WriteInstruction(const Instruction &I, unsigned InstID, Vals.push_back(II->getCallingConv()); Vals.push_back(VE.getValueID(II->getNormalDest())); Vals.push_back(VE.getValueID(II->getUnwindDest())); - PushValueAndType(II->getCalledFunction(), InstID, Vals, VE); + PushValueAndType(I.getOperand(0), InstID, Vals, VE); // callee // Emit value #'s for the fixed parameters. for (unsigned i = 0, e = FTy->getNumParams(); i != e; ++i) -- cgit v1.2.3