mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
use ArgOperand APIs
llvm-svn: 107132
This commit is contained in:
parent
25a2d02c5c
commit
d4fc146cb3
@ -246,10 +246,10 @@ bool DwarfEHPrepare::CleanupSelectors() {
|
||||
if (!Sel || Sel->getParent()->getParent() != F) continue;
|
||||
|
||||
// Index of the ".llvm.eh.catch.all.value" variable.
|
||||
unsigned OpIdx = Sel->getNumOperands() - 1;
|
||||
GlobalVariable *GV = dyn_cast<GlobalVariable>(Sel->getOperand(OpIdx));
|
||||
unsigned OpIdx = Sel->getNumArgOperands() - 1;
|
||||
GlobalVariable *GV = dyn_cast<GlobalVariable>(Sel->getArgOperand(OpIdx));
|
||||
if (GV != EHCatchAllValue) continue;
|
||||
Sel->setOperand(OpIdx, EHCatchAllValue->getInitializer());
|
||||
Sel->setArgOperand(OpIdx, EHCatchAllValue->getInitializer());
|
||||
Changed = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user