mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-12 18:33:22 +00:00
use ArgOperand APIs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107132 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
978189e090
commit
9d677680e4
@ -246,10 +246,10 @@ bool DwarfEHPrepare::CleanupSelectors() {
|
|||||||
if (!Sel || Sel->getParent()->getParent() != F) continue;
|
if (!Sel || Sel->getParent()->getParent() != F) continue;
|
||||||
|
|
||||||
// Index of the ".llvm.eh.catch.all.value" variable.
|
// Index of the ".llvm.eh.catch.all.value" variable.
|
||||||
unsigned OpIdx = Sel->getNumOperands() - 1;
|
unsigned OpIdx = Sel->getNumArgOperands() - 1;
|
||||||
GlobalVariable *GV = dyn_cast<GlobalVariable>(Sel->getOperand(OpIdx));
|
GlobalVariable *GV = dyn_cast<GlobalVariable>(Sel->getArgOperand(OpIdx));
|
||||||
if (GV != EHCatchAllValue) continue;
|
if (GV != EHCatchAllValue) continue;
|
||||||
Sel->setOperand(OpIdx, EHCatchAllValue->getInitializer());
|
Sel->setArgOperand(OpIdx, EHCatchAllValue->getInitializer());
|
||||||
Changed = true;
|
Changed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user