From 2dc160dc77ec9650ba994aa000056d3bd9e04d91 Mon Sep 17 00:00:00 2001 From: Marcello Maggioni Date: Thu, 10 Oct 2019 21:51:30 +0000 Subject: [PATCH] [GISel] Simplifying return from else in function. NFC Forgot to integrate this little change in previous commit git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374463 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/GlobalISel/Utils.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/CodeGen/GlobalISel/Utils.cpp b/lib/CodeGen/GlobalISel/Utils.cpp index cdabf272a94..45618d7992a 100644 --- a/lib/CodeGen/GlobalISel/Utils.cpp +++ b/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) { -- 2.40.0