diff options
-rw-r--r-- | llvm/lib/CodeGen/GlobalISel/Utils.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/Utils.cpp b/llvm/lib/CodeGen/GlobalISel/Utils.cpp index cdabf272a94..45618d7992a 100644 --- a/llvm/lib/CodeGen/GlobalISel/Utils.cpp +++ b/llvm/lib/CodeGen/GlobalISel/Utils.cpp @@ -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) { |