diff --git a/llvm/lib/CodeGen/GlobalISel/Utils.cpp b/llvm/lib/CodeGen/GlobalISel/Utils.cpp index cdabf272a943..45618d7992ad 100644 --- a/llvm/lib/CodeGen/GlobalISel/Utils.cpp +++ b/llvm/lib/CodeGen/GlobalISel/Utils.cpp @@ -238,9 +238,8 @@ Optional 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) {