From fdede435b9795beb9308558040265e53424e919b Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Wed, 7 Jan 2009 23:07:22 +0000 Subject: [PATCH] revert to functionally equivalent formulation git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61895 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bitcode/Writer/BitcodeWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp index ed9d4db8c64..81a1a379969 100644 --- a/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/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) -- 2.34.1