aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Bitcode
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2007-08-27 19:04:21 +0000
committerDavid Greene <greened@obbligato.org>2007-08-27 19:04:21 +0000
commitf1355a55f8d815f5385e9a4432195f03b65f3a42 (patch)
tree22a84137e3fd97e2796d08dd07436bf2f4ff566c /lib/Bitcode
parent44c8265cf86ba3cfc317605726296474aa8d7fa6 (diff)
downloadexternal_llvm-f1355a55f8d815f5385e9a4432195f03b65f3a42.zip
external_llvm-f1355a55f8d815f5385e9a4432195f03b65f3a42.tar.gz
external_llvm-f1355a55f8d815f5385e9a4432195f03b65f3a42.tar.bz2
Update InvokeInst to work like CallInst
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41506 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode')
-rw-r--r--lib/Bitcode/Reader/BitcodeReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp
index eb18e31..e1cd668 100644
--- a/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -1400,7 +1400,7 @@ bool BitcodeReader::ParseFunctionBody(Function *F) {
}
}
- I = new InvokeInst(Callee, NormalBB, UnwindBB, &Ops[0], Ops.size());
+ I = new InvokeInst(Callee, NormalBB, UnwindBB, Ops.begin(), Ops.end());
cast<InvokeInst>(I)->setCallingConv(CCInfo);
break;
}