summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-06-25 08:24:59 +0000
committerGabor Greif <ggreif@gmail.com>2010-06-25 08:24:59 +0000
commite4eed709d4b6dac3e8a8877bddb2b7b935f13f0f (patch)
treea233389a3f1c7c12435fd81f62df580ea1b28cb7 /llvm/lib/CodeGen
parentf6207e0a8096b640beab146e4526fec21e607c1c (diff)
downloadbcm5719-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.cpp2
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");
OpenPOWER on IntegriCloud