diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-06-29 13:03:46 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-06-29 13:03:46 +0000 |
commit | 9d677680e4eca77a806171aaed179158f1835593 (patch) | |
tree | c1b9ff657dc499c42074ef0ef9d43aacdf36b973 /lib/CodeGen | |
parent | 978189e090e809c1a6efcf2677e785a06f71029e (diff) | |
download | external_llvm-9d677680e4eca77a806171aaed179158f1835593.zip external_llvm-9d677680e4eca77a806171aaed179158f1835593.tar.gz external_llvm-9d677680e4eca77a806171aaed179158f1835593.tar.bz2 |
use ArgOperand APIs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107132 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/DwarfEHPrepare.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/DwarfEHPrepare.cpp b/lib/CodeGen/DwarfEHPrepare.cpp index 3fb4019..3cb5265 100644 --- a/lib/CodeGen/DwarfEHPrepare.cpp +++ b/lib/CodeGen/DwarfEHPrepare.cpp @@ -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; } |