diff options
author | Gabor Greif <ggreif@gmail.com> | 2009-01-07 23:07:22 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2009-01-07 23:07:22 +0000 |
commit | 6aa83bd45960575d8b09cb3b203e2434a9d3a604 (patch) | |
tree | d76d13d372bcc2b45a45f3009c9ec949fe69921e /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | f929b0aefe2becbfa418ba9ea078042d4d949be1 (diff) | |
download | bcm5719-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.cpp | 2 |
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) |