projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make the static instance of None just const.
[oota-llvm.git]
/
include
/
llvm
/
ADT
/
None.h
diff --git
a/include/llvm/ADT/None.h
b/include/llvm/ADT/None.h
index c78db78597cc681946a925014ccbb10e5565939e..d69ec17c15f910ce0ea6a6a3ead2d02d93f8eefe 100644
(file)
--- a/
include/llvm/ADT/None.h
+++ b/
include/llvm/ADT/None.h
@@
-20,7
+20,7
@@
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 class NoneType { None };
-
static NoneType
None;
+
const NoneType None =
None;
}
#endif