summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Writer
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2009-01-07 22:39:29 +0000
committerGabor Greif <ggreif@gmail.com>2009-01-07 22:39:29 +0000
commit6ecd6f43b0b10d9f666d44acb64a57f40b221f72 (patch)
treedecdf4a4b1824a92f591a16fa9b5d48181f98ebb /llvm/lib/Bitcode/Writer
parent261ee6be5754b21a265719724899522586c293e3 (diff)
downloadbcm5719-llvm-6ecd6f43b0b10d9f666d44acb64a57f40b221f72.tar.gz
bcm5719-llvm-6ecd6f43b0b10d9f666d44acb64a57f40b221f72.zip
use the obvious getters
llvm-svn: 61893
Diffstat (limited to 'llvm/lib/Bitcode/Writer')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index b98dab70924..ed9d4db8c64 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -831,9 +831,9 @@ static void WriteInstruction(const Instruction &I, unsigned InstID,
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)
OpenPOWER on IntegriCloud