aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/None.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/ADT/None.h')
-rw-r--r--include/llvm/ADT/None.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/ADT/None.h b/include/llvm/ADT/None.h
index 5793bd2..d69ec17 100644
--- a/include/llvm/ADT/None.h
+++ b/include/llvm/ADT/None.h
@@ -19,9 +19,8 @@
namespace llvm {
/// \brief A simple null object to allow implicit construction of Optional<T>
/// and similar types without having to spell out the specialization's name.
-enum NoneType {
- None
-};
+enum class NoneType { None };
+const NoneType None = None;
}
#endif