[PATCH] D103489: [lld-macho][nfc] Remove unnecessary use of Optional<T*>

Vy Nguyen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 1 13:11:41 PDT 2021


oontvoo created this revision.
Herald added a reviewer: int3.
Herald added a reviewer: gkm.
Herald added a project: lld-macho.
Herald added a reviewer: lld-macho.
oontvoo requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

In all of these cases, the functions could simply return a nullptr instead of {}.
There is no case where Optional<nullptr> has a special meaning.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103489

Files:
  lld/MachO/Driver.cpp
  lld/MachO/Driver.h
  lld/MachO/DriverUtils.cpp
  lld/MachO/InputFiles.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103489.349081.patch
Type: text/x-patch
Size: 5209 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210601/329fb17c/attachment.bin>


More information about the llvm-commits mailing list