diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-02-20 13:16:05 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-02-20 13:16:05 +0000 |
| commit | ca1ba4b280998d54a9668473d8fb35c8fafed377 (patch) | |
| tree | 4e95bd3d39487b2ba0f7fe08a67bc6b8f7d1be64 /llvm | |
| parent | d4a3a555646b692f9a3b24346ad40e2025908deb (diff) | |
| download | bcm5719-llvm-ca1ba4b280998d54a9668473d8fb35c8fafed377.tar.gz bcm5719-llvm-ca1ba4b280998d54a9668473d8fb35c8fafed377.zip | |
Make the static instance of None just const.
This way there shouldn't be any unused variable warnings.
llvm-svn: 230010
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/ADT/None.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/ADT/None.h b/llvm/include/llvm/ADT/None.h index c78db78597c..d69ec17c15f 100644 --- 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 |

