summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
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
commit6aa83bd45960575d8b09cb3b203e2434a9d3a604 (patch)
treed76d13d372bcc2b45a45f3009c9ec949fe69921e /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parentf929b0aefe2becbfa418ba9ea078042d4d949be1 (diff)
downloadbcm5719-llvm-6aa83bd45960575d8b09cb3b203e2434a9d3a604.tar.gz
bcm5719-llvm-6aa83bd45960575d8b09cb3b203e2434a9d3a604.zip
revert to functionally equivalent formulation
llvm-svn: 61895
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp2
1 files changed, 1 insertions, 1 deletions
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)
OpenPOWER on IntegriCloud