From: Reid Spencer Date: Wed, 3 Jan 2007 16:49:33 +0000 (+0000) Subject: Legalizer doesn't do an ANY_EXTEND if we don't ask for one so make sure X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bcca3405bd6698af82eeed20e24744d0625aa1b3;p=oota-llvm.git 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32836 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 70ff6d9584f..ce0038d6b87 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/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))