projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4a3a55
)
Make the static instance of None just const.
author
Benjamin Kramer
<benny.kra@googlemail.com>
Fri, 20 Feb 2015 13:16:05 +0000
(13:16 +0000)
committer
Benjamin Kramer
<benny.kra@googlemail.com>
Fri, 20 Feb 2015 13:16:05 +0000
(13:16 +0000)
This way there shouldn't be any unused variable warnings.
llvm-svn: 230010
llvm/include/llvm/ADT/None.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/ADT/None.h
b/llvm/include/llvm/ADT/None.h
index
c78db78
..
d69ec17
100644
(file)
--- a/
llvm/include/llvm/ADT/None.h
+++ b/
llvm/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