[llvm] bc1bdfd - [Support] Include optional instead of None.h
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 5 22:56:31 PST 2022
Author: Kazu Hirata
Date: 2022-12-05T22:56:24-08:00
New Revision: bc1bdfd6f8122f20c46732fff25216bfe9bfd03b
URL: https://github.com/llvm/llvm-project/commit/bc1bdfd6f8122f20c46732fff25216bfe9bfd03b
DIFF: https://github.com/llvm/llvm-project/commit/bc1bdfd6f8122f20c46732fff25216bfe9bfd03b.diff
LOG: [Support] Include optional instead of None.h
SMLoc uses std::nullopt_t, so it should include optional rather than
None.h.
Added:
Modified:
llvm/include/llvm/Support/SMLoc.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Support/SMLoc.h b/llvm/include/llvm/Support/SMLoc.h
index 17a67885edb71..60b052a3b8635 100644
--- a/llvm/include/llvm/Support/SMLoc.h
+++ b/llvm/include/llvm/Support/SMLoc.h
@@ -14,8 +14,8 @@
#ifndef LLVM_SUPPORT_SMLOC_H
#define LLVM_SUPPORT_SMLOC_H
-#include "llvm/ADT/None.h"
#include <cassert>
+#include <optional>
namespace llvm {
More information about the llvm-commits
mailing list