summaryrefslogtreecommitdiff
path: root/lib/CodeGen/DwarfEHPrepare.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-06-29 13:03:46 +0000
committerGabor Greif <ggreif@gmail.com>2010-06-29 13:03:46 +0000
commit9d677680e4eca77a806171aaed179158f1835593 (patch)
treec1b9ff657dc499c42074ef0ef9d43aacdf36b973 /lib/CodeGen/DwarfEHPrepare.cpp
parent978189e090e809c1a6efcf2677e785a06f71029e (diff)
downloadllvm-9d677680e4eca77a806171aaed179158f1835593.tar.gz
llvm-9d677680e4eca77a806171aaed179158f1835593.tar.bz2
llvm-9d677680e4eca77a806171aaed179158f1835593.tar.xz
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/DwarfEHPrepare.cpp')
-rw-r--r--lib/CodeGen/DwarfEHPrepare.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/DwarfEHPrepare.cpp b/lib/CodeGen/DwarfEHPrepare.cpp
index 3fb4019ccc..3cb5265bc4 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;
}