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 | e73d64c2cf7e4d140935f73895605d226d2b9eea (patch) | |
| tree | 9c5a4810aa58d48fad9563a23c33e315891956e5 | |
| parent | 78ad27ca2b027242309365f3ad7371df64a38110 (diff) | |
| download | bcm5719-llvm-e73d64c2cf7e4d140935f73895605d226d2b9eea.tar.gz bcm5719-llvm-e73d64c2cf7e4d140935f73895605d226d2b9eea.zip | |
use ArgOperand APIs
llvm-svn: 107132
| -rw-r--r-- | llvm/lib/CodeGen/DwarfEHPrepare.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/DwarfEHPrepare.cpp b/llvm/lib/CodeGen/DwarfEHPrepare.cpp index 3fb4019cccd..3cb5265bc42 100644 --- a/llvm/lib/CodeGen/DwarfEHPrepare.cpp +++ b/llvm/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; } |

