forked from OSchip/llvm-project
Don't recompute something that we already have in a local variable.
llvm-svn: 127764
This commit is contained in:
parent
fd95b016fb
commit
d1ad9bc277
|
@ -1151,9 +1151,9 @@ void SelectionDAGBuilder::visitRet(const ReturnInst &I) {
|
|||
Flags.setInReg();
|
||||
|
||||
// Propagate extension type if any
|
||||
if (F->paramHasAttr(0, Attribute::SExt))
|
||||
if (ExtendKind == ISD::SIGN_EXTEND)
|
||||
Flags.setSExt();
|
||||
else if (F->paramHasAttr(0, Attribute::ZExt))
|
||||
else if (ExtendKind == ISD::ZERO_EXTEND)
|
||||
Flags.setZExt();
|
||||
|
||||
for (unsigned i = 0; i < NumParts; ++i) {
|
||||
|
|
Loading…
Reference in New Issue