use ArgOperand API (the simple part)
authorGabor Greif <ggreif@gmail.com>
Fri, 25 Jun 2010 09:44:37 +0000 (09:44 +0000)
committerGabor Greif <ggreif@gmail.com>
Fri, 25 Jun 2010 09:44:37 +0000 (09:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106837 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/DwarfEHPrepare.cpp

index 651740d377fd30439ad11af28567c54b875955c6..417215482f986643cac2f673000b769d09ee0a79 100644 (file)
@@ -386,8 +386,8 @@ bool DwarfEHPrepare::HandleURoRInvokes() {
 
       // 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() -