[PATCH] D89887: Remove unnecessary code

Aleksander Fadeev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 21 08:00:21 PDT 2020


AlFadeev created this revision.
AlFadeev added a reviewer: zturner.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
AlFadeev requested review of this revision.

Remove unnecessary code in CommandLine.cpp


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D89887

Files:
  llvm/lib/Support/CommandLine.cpp


Index: llvm/lib/Support/CommandLine.cpp
===================================================================
--- llvm/lib/Support/CommandLine.cpp
+++ llvm/lib/Support/CommandLine.cpp
@@ -532,9 +532,6 @@
   if (EqualPos == StringRef::npos) {
     // Look up the option.
     auto I = Sub.OptionsMap.find(Arg);
-    if (I == Sub.OptionsMap.end())
-      return nullptr;
-
     return I != Sub.OptionsMap.end() ? I->second : nullptr;
   }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89887.299683.patch
Type: text/x-patch
Size: 437 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201021/b77f9fac/attachment.bin>


More information about the llvm-commits mailing list