From: Benjamin Kramer Date: Fri, 20 Feb 2015 13:16:05 +0000 (+0000) Subject: Make the static instance of None just const. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=fa3b207447830c7cb587cb13bcace727abd1649a Make the static instance of None just const. This way there shouldn't be any unused variable warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230010 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/None.h b/include/llvm/ADT/None.h index c78db78597c..d69ec17c15f 100644 --- 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 /// and similar types without having to spell out the specialization's name. enum class NoneType { None }; -static NoneType None; +const NoneType None = None; } #endif