use ArgOperand API (the simple part)
llvm-svn: 106837
diff --git a/llvm/lib/CodeGen/DwarfEHPrepare.cpp b/llvm/lib/CodeGen/DwarfEHPrepare.cpp
index 651740d..4172154 100644
--- a/llvm/lib/CodeGen/DwarfEHPrepare.cpp
+++ b/llvm/lib/CodeGen/DwarfEHPrepare.cpp
@@ -386,8 +386,8 @@
// Use the exception object pointer and the personality function
// from the original selector.
- Args.push_back(II->getOperand(1)); // Exception object pointer.
- Args.push_back(II->getOperand(2)); // Personality function.
+ Args.push_back(II->getArgOperand(0)); // Exception object pointer.
+ Args.push_back(II->getArgOperand(1)); // Personality function.
unsigned I = 3;
unsigned E = II->getNumOperands() -