projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35e9f7d
)
Avoid unnecessarily casting away const.
author
Dan Gohman
<gohman@apple.com>
Thu, 31 Jan 2008 01:01:48 +0000
(
01:01
+0000)
committer
Dan 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
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86ISelLowering.cpp
b/lib/Target/X86/X86ISelLowering.cpp
index 9d72694f9a5c486ea292a379cd4fdcf418159aa3..873a587dede4974ace9da32f43abef4a26be8386 100644
(file)
--- a/
lib/Target/X86/X86ISelLowering.cpp
+++ b/
lib/Target/X86/X86ISelLowering.cpp
@@
-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;