[llvm] r292149 - PR31650: Refer to enum constant when initializing llvm::None constant
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 16 10:48:53 PST 2017
Author: dblaikie
Date: Mon Jan 16 12:48:52 2017
New Revision: 292149
URL: http://llvm.org/viewvc/llvm-project?rev=292149&view=rev
Log:
PR31650: Refer to enum constant when initializing llvm::None constant
Modified:
llvm/trunk/include/llvm/ADT/None.h
Modified: llvm/trunk/include/llvm/ADT/None.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/None.h?rev=292149&r1=292148&r2=292149&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/None.h (original)
+++ llvm/trunk/include/llvm/ADT/None.h Mon Jan 16 12:48:52 2017
@@ -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 };
-const NoneType None = None;
+const NoneType None = NoneType::None;
}
#endif
More information about the llvm-commits
mailing list