mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-11 11:06:06 +00:00

It is almost always simpler to use {} instead of std::nullopt to initialize an empty ArrayRef. This patch changes all occurrences I could find in LLVM itself. In future the ArrayRef(std::nullopt_t) constructor could be deprecated or removed.