diff options
author | Kazu Hirata <kazu@google.com> | 2022-11-23 14:16:04 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-11-23 14:16:04 -0800 |
commit | 34bcadc38c2240807cd079fd03b93fc96cf64c84 (patch) | |
tree | 343d0c294475bb7c2c7d6f8ba7c0341fdd981dca /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 4b4cbbd7fb05b3436aade8d91e981ef4adca6c33 (diff) | |
download | llvm-34bcadc38c2240807cd079fd03b93fc96cf64c84.zip llvm-34bcadc38c2240807cd079fd03b93fc96cf64c84.tar.gz llvm-34bcadc38c2240807cd079fd03b93fc96cf64c84.tar.bz2 |
Use std::nullopt_t instead of NoneType (NFC)
This patch replaces those occurrences of NoneType that would trigger
an error if the definition of NoneType were missing in None.h.
To keep this patch focused, I am deliberately not replacing None with
std::nullopt in this patch or updating comments. They will be
addressed in subsequent patches.
This is part of an effort to migrate from llvm::Optional to
std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
Differential Revision: https://reviews.llvm.org/D138539
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions