Avoid unnecessarily casting away const.
authorDan Gohman <gohman@apple.com>
Thu, 31 Jan 2008 01:01:48 +0000 (01:01 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 31 Jan 2008 01:01:48 +0000 (01:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46590 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

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