diff options
| author | Gabor Greif <ggreif@gmail.com> | 2010-06-25 08:24:59 +0000 |
|---|---|---|
| committer | Gabor Greif <ggreif@gmail.com> | 2010-06-25 08:24:59 +0000 |
| commit | 010139fa9acf693e4c288ab7e3a8e35e76413329 (patch) | |
| tree | 247e7c54251909cd8e0a24a48fcaf94c740c8772 /lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp | |
| parent | ba060ceda3b40bf3ae99041d86f05d66cdb22ed9 (diff) | |
| download | external_llvm-010139fa9acf693e4c288ab7e3a8e35e76413329.zip external_llvm-010139fa9acf693e4c288ab7e3a8e35e76413329.tar.gz external_llvm-010139fa9acf693e4c288ab7e3a8e35e76413329.tar.bz2 | |
use ArgOperand API
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106828 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp')
| -rw-r--r-- | lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp b/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp index e711b9b..134732e 100644 --- a/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp +++ b/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp @@ -206,7 +206,7 @@ unsigned FunctionLoweringInfo::CreateRegForValue(const Value *V) { void llvm::AddCatchInfo(const CallInst &I, MachineModuleInfo *MMI, MachineBasicBlock *MBB) { // Inform the MachineModuleInfo of the personality for this landing pad. - const ConstantExpr *CE = cast<ConstantExpr>(I.getOperand(2)); + const ConstantExpr *CE = cast<ConstantExpr>(I.getArgOperand(1)); assert(CE->getOpcode() == Instruction::BitCast && isa<Function>(CE->getOperand(0)) && "Personality should be a function"); |
