summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-03 16:49:33 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-03 16:49:33 +0000
commite6f81876eb7f6427dfaffa14b5cb03496ae68605 (patch)
tree692bf87104574a5d89f8aeb0c3ad9a32ce4a2fbd /llvm/lib/CodeGen
parent7601f2f36ed2643b7bf59345117aecafc9e22b2b (diff)
downloadbcm5719-llvm-e6f81876eb7f6427dfaffa14b5cb03496ae68605.tar.gz
bcm5719-llvm-e6f81876eb7f6427dfaffa14b5cb03496ae68605.zip
Legalizer doesn't do an ANY_EXTEND if we don't ask for one so make sure
that we default to an ANY_EXTEND if no parameter attribute is set on the result value of a function. llvm-svn: 32836
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 70ff6d9584f..ce0038d6b87 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -766,7 +766,7 @@ void SelectionDAGLowering::visitRet(ReturnInst &I) {
else
TmpVT = MVT::i32;
const FunctionType *FTy = I.getParent()->getParent()->getFunctionType();
- ISD::NodeType ExtendKind = ISD::ZERO_EXTEND; // FIXME: ANY_EXTEND?
+ ISD::NodeType ExtendKind = ISD::ANY_EXTEND;
if (FTy->paramHasAttr(0, FunctionType::SExtAttribute))
ExtendKind = ISD::SIGN_EXTEND;
if (FTy->paramHasAttr(0, FunctionType::ZExtAttribute))
OpenPOWER on IntegriCloud