[llvm-commits] [llvm] r46590 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Dan Gohman
djg at cray.com
Wed Jan 30 17:01:49 PST 2008
Author: djg
Date: Wed Jan 30 19:01:48 2008
New Revision: 46590
URL: http://llvm.org/viewvc/llvm-project?rev=46590&view=rev
Log:
Avoid unnecessarily casting away const.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=46590&r1=46589&r2=46590&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Wed Jan 30 19:01:48 2008
@@ -4977,7 +4977,7 @@
{ 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;
More information about the llvm-commits
mailing list