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 | 45c097fe43d565905041d2a9fc77567d2deca709 (patch) | |
tree | 000a86f5cda2e28cd35eadddd4a408d3d328c25b /lib/CodeGen/SjLjEHPrepare.cpp | |
parent | ef36d864d62a4b6258de89308b576089095eeaa7 (diff) | |
download | external_llvm-45c097fe43d565905041d2a9fc77567d2deca709.zip external_llvm-45c097fe43d565905041d2a9fc77567d2deca709.tar.gz external_llvm-45c097fe43d565905041d2a9fc77567d2deca709.tar.bz2 |
use ArgOperand API
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106835 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SjLjEHPrepare.cpp')
-rw-r--r-- | lib/CodeGen/SjLjEHPrepare.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SjLjEHPrepare.cpp b/lib/CodeGen/SjLjEHPrepare.cpp index 9aa2b69..f76eaf1 100644 --- a/lib/CodeGen/SjLjEHPrepare.cpp +++ b/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); |