diff options
| author | Gabor Greif <ggreif@gmail.com> | 2010-04-15 12:46:56 +0000 |
|---|---|---|
| committer | Gabor Greif <ggreif@gmail.com> | 2010-04-15 12:46:56 +0000 |
| commit | 9fd00c7d255cd5e15de146550a19c5f8a0a7dc33 (patch) | |
| tree | bf222f4c04dd1c5266098dd8c20d0c8059dd80ae /llvm/lib/CodeGen/SjLjEHPrepare.cpp | |
| parent | 3d9d23561934f4ea682cc9113d986ece267aa34d (diff) | |
| download | bcm5719-llvm-9fd00c7d255cd5e15de146550a19c5f8a0a7dc33.tar.gz bcm5719-llvm-9fd00c7d255cd5e15de146550a19c5f8a0a7dc33.zip | |
back out r101364, as it trips the linux nightlybot on some clang C++ tests
llvm-svn: 101368
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 3d3d862d202..059e8d6c19a 100644 --- a/llvm/lib/CodeGen/SjLjEHPrepare.cpp +++ b/llvm/lib/CodeGen/SjLjEHPrepare.cpp @@ -305,7 +305,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(1); + if (!PersonalityFn) PersonalityFn = CI->getOperand(2); EH_Selectors.push_back(CI); } else if (CI->getCalledFunction() == ExceptionFn) { EH_Exceptions.push_back(CI); |

