mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 23:32:27 +00:00
use ArgOperand API
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106835 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ef36d864d6
commit
45c097fe43
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user