aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Bitcode
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
commit8fe53b733b5a62c458d9b4d3b471ddaf43ef4b94 (patch)
tree1c2ff6d307f3a302010558d3e4542047f3e672a9 /lib/Bitcode
parent25fd4037a7f698877eedb69bf32d8591344e86ee (diff)
downloadexternal_llvm-8fe53b733b5a62c458d9b4d3b471ddaf43ef4b94.zip
external_llvm-8fe53b733b5a62c458d9b4d3b471ddaf43ef4b94.tar.gz
external_llvm-8fe53b733b5a62c458d9b4d3b471ddaf43ef4b94.tar.bz2
use the obvious getters
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61893 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode')
-rw-r--r--lib/Bitcode/Writer/BitcodeWriter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp
index b98dab7..ed9d4db 100644
--- a/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/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)