Avoid unnecessarily casting away const.

llvm-svn: 46590
This commit is contained in:
Dan Gohman 2008-01-31 01:01:48 +00:00
parent c2fdeee1ed
commit ed346f2ed5
1 changed files with 1 additions and 1 deletions

View File

@ -4977,7 +4977,7 @@ SDOperand X86TargetLowering::LowerTRAMPOLINE(SDOperand Op,
{ Trmp, DAG.getNode(ISD::TokenFactor, MVT::Other, OutChains, 6) }; { Trmp, DAG.getNode(ISD::TokenFactor, MVT::Other, OutChains, 6) };
return DAG.getNode(ISD::MERGE_VALUES, Op.Val->getVTList(), Ops, 2); return DAG.getNode(ISD::MERGE_VALUES, Op.Val->getVTList(), Ops, 2);
} else { } else {
Function *Func = (Function *) const Function *Func =
cast<Function>(cast<SrcValueSDNode>(Op.getOperand(5))->getValue()); cast<Function>(cast<SrcValueSDNode>(Op.getOperand(5))->getValue());
unsigned CC = Func->getCallingConv(); unsigned CC = Func->getCallingConv();
unsigned NestReg; unsigned NestReg;