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 | e4eed709d4b6dac3e8a8877bddb2b7b935f13f0f (patch) | |
tree | a233389a3f1c7c12435fd81f62df580ea1b28cb7 /llvm/lib/CodeGen | |
parent | f6207e0a8096b640beab146e4526fec21e607c1c (diff) | |
download | bcm5719-llvm-e4eed709d4b6dac3e8a8877bddb2b7b935f13f0f.tar.gz bcm5719-llvm-e4eed709d4b6dac3e8a8877bddb2b7b935f13f0f.zip |
use ArgOperand API
llvm-svn: 106828
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp index e711b9b84e8..134732e8585 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp +++ b/llvm/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"); |