diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-06-25 09:36:23 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-06-25 09:36:23 +0000 |
commit | 41b81ee2fbf812396cdfc1c6a7e472943bc57c92 (patch) | |
tree | ef290a6d0c78d131ddbe390fab264676ada4f6b0 /llvm/lib/CodeGen/SjLjEHPrepare.cpp | |
parent | cfdaac1cb024f405c59c287ff0bd6f88a68e6f2b (diff) | |
download | bcm5719-llvm-41b81ee2fbf812396cdfc1c6a7e472943bc57c92.tar.gz bcm5719-llvm-41b81ee2fbf812396cdfc1c6a7e472943bc57c92.zip |
use ArgOperand API
llvm-svn: 106835
Diffstat (limited to 'llvm/lib/CodeGen/SjLjEHPrepare.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SjLjEHPrepare.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SjLjEHPrepare.cpp b/llvm/lib/CodeGen/SjLjEHPrepare.cpp index 9aa2b69f65c..f76eaf12782 100644 --- a/llvm/lib/CodeGen/SjLjEHPrepare.cpp +++ b/llvm/lib/CodeGen/SjLjEHPrepare.cpp @@ -339,7 +339,7 @@ bool SjLjEHPass::insertSjLjEHSupport(Function &F) { for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; ++I) { if (CallInst *CI = dyn_cast<CallInst>(I)) { if (CI->getCalledFunction() == SelectorFn) { - if (!PersonalityFn) PersonalityFn = CI->getOperand(2); + if (!PersonalityFn) PersonalityFn = CI->getArgOperand(1); EH_Selectors.push_back(CI); } else if (CI->getCalledFunction() == ExceptionFn) { EH_Exceptions.push_back(CI); |