aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Bitcode
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2009-01-07 23:07:22 +0000
committerGabor Greif <ggreif@gmail.com>2009-01-07 23:07:22 +0000
commit4aa413810063bee50be26d184b56b0d1f0d8f4eb (patch)
treeafe4726898496b7e4e2044df9d8eae1c40ee28c7 /lib/Bitcode
parent2494e3188c518ec588dd74d6c210e4cf35ae1e34 (diff)
downloadexternal_llvm-4aa413810063bee50be26d184b56b0d1f0d8f4eb.zip
external_llvm-4aa413810063bee50be26d184b56b0d1f0d8f4eb.tar.gz
external_llvm-4aa413810063bee50be26d184b56b0d1f0d8f4eb.tar.bz2
revert to functionally equivalent formulation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61895 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode')
-rw-r--r--lib/Bitcode/Writer/BitcodeWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp
index ed9d4db..81a1a37 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)