diff options
| author | Marcello Maggioni <hayarms@gmail.com> | 2019-10-10 21:51:30 +0000 |
|---|---|---|
| committer | Marcello Maggioni <hayarms@gmail.com> | 2019-10-10 21:51:30 +0000 |
| commit | a064edf55e1ced1ea1627d4af57d3411f5c86357 (patch) | |
| tree | 347df8cdb9cc73e009b01b85ba3a3c9ffa039861 /llvm/lib/CodeGen | |
| parent | 6cff8648cc84125d603b9de72de1f949e98b8092 (diff) | |
| download | bcm5719-llvm-a064edf55e1ced1ea1627d4af57d3411f5c86357.tar.gz bcm5719-llvm-a064edf55e1ced1ea1627d4af57d3411f5c86357.zip | |
[GISel] Simplifying return from else in function. NFC
Forgot to integrate this little change in previous commit
llvm-svn: 374463
Diffstat (limited to 'llvm/lib/CodeGen')
| -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) { |

