[llvm-commits] [llvm] r61893 - /llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp
Gabor Greif
ggreif at gmail.com
Wed Jan 7 14:39:29 PST 2009
Author: ggreif
Date: Wed Jan 7 16:39:29 2009
New Revision: 61893
URL: http://llvm.org/viewvc/llvm-project?rev=61893&view=rev
Log:
use the obvious getters
Modified:
llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp
Modified: llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp?rev=61893&r1=61892&r2=61893&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp (original)
+++ llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp Wed Jan 7 16:39:29 2009
@@ -831,9 +831,9 @@
const InvokeInst *II = cast<InvokeInst>(&I);
Vals.push_back(VE.getAttributeID(II->getAttributes()));
Vals.push_back(II->getCallingConv());
- Vals.push_back(VE.getValueID(I.getOperand(1))); // normal dest
- Vals.push_back(VE.getValueID(I.getOperand(2))); // unwind dest
- PushValueAndType(I.getOperand(0), InstID, Vals, VE); // callee
+ Vals.push_back(VE.getValueID(II->getNormalDest()));
+ Vals.push_back(VE.getValueID(II->getUnwindDest()));
+ PushValueAndType(II->getCalledFunction(), InstID, Vals, VE);
// Emit value #'s for the fixed parameters.
for (unsigned i = 0, e = FTy->getNumParams(); i != e; ++i)
More information about the llvm-commits
mailing list