[llvm-commits] [llvm] r107132 - /llvm/trunk/lib/CodeGen/DwarfEHPrepare.cpp
Gabor Greif
ggreif at gmail.com
Tue Jun 29 06:03:46 PDT 2010
Author: ggreif
Date: Tue Jun 29 08:03:46 2010
New Revision: 107132
URL: http://llvm.org/viewvc/llvm-project?rev=107132&view=rev
Log:
use ArgOperand APIs
Modified:
llvm/trunk/lib/CodeGen/DwarfEHPrepare.cpp
Modified: llvm/trunk/lib/CodeGen/DwarfEHPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/DwarfEHPrepare.cpp?rev=107132&r1=107131&r2=107132&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/DwarfEHPrepare.cpp (original)
+++ llvm/trunk/lib/CodeGen/DwarfEHPrepare.cpp Tue Jun 29 08:03:46 2010
@@ -246,10 +246,10 @@
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;
}
More information about the llvm-commits
mailing list