[GISel] Simplifying return from else in function. NFC

Forgot to integrate this little change in previous commit

llvm-svn: 374463
This commit is contained in:
Marcello Maggioni 2019-10-10 21:51:30 +00:00
parent 6cff8648cc
commit a064edf55e
1 changed files with 1 additions and 2 deletions

View File

@ -238,9 +238,8 @@ Optional<ValueAndVReg> llvm::getConstantVRegValWithLookThrough(
assert(Val.getBitWidth() == BitWidth &&
"Value bitwidth doesn't match definition type");
return Val;
} else {
return CstVal.getFPImm()->getValueAPF().bitcastToAPInt();
}
return CstVal.getFPImm()->getValueAPF().bitcastToAPInt();
};
while ((MI = MRI.getVRegDef(VReg)) && !IsConstantOpcode(MI->getOpcode()) &&
LookThroughInstrs) {