summaryrefslogtreecommitdiff
path: root/lib/CodeGen/ShadowStackGC.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-07-15 08:37:34 +0000
committerJay Foad <jay.foad@gmail.com>2011-07-15 08:37:34 +0000
commita3efbb15ddd5aa9006564cd79086723640084878 (patch)
treebaf8eacf902c618293d636c233339c13722a5b15 /lib/CodeGen/ShadowStackGC.cpp
parente083805724196bd45a3612bf9373f503b5b8a7e0 (diff)
downloadllvm-a3efbb15ddd5aa9006564cd79086723640084878.tar.gz
llvm-a3efbb15ddd5aa9006564cd79086723640084878.tar.bz2
llvm-a3efbb15ddd5aa9006564cd79086723640084878.tar.xz
Convert CallInst and InvokeInst APIs to use ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135265 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ShadowStackGC.cpp')
-rw-r--r--lib/CodeGen/ShadowStackGC.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/ShadowStackGC.cpp b/lib/CodeGen/ShadowStackGC.cpp
index d7c9adad7f..5a253a4d97 100644
--- a/lib/CodeGen/ShadowStackGC.cpp
+++ b/lib/CodeGen/ShadowStackGC.cpp
@@ -165,8 +165,7 @@ namespace {
InvokeInst *II = InvokeInst::Create(CI->getCalledValue(),
NewBB, CleanupBB,
- Args.begin(), Args.end(),
- CI->getName(), CallBB);
+ Args, CI->getName(), CallBB);
II->setCallingConv(CI->getCallingConv());
II->setAttributes(CI->getAttributes());
CI->replaceAllUsesWith(II);