]> granicus.if.org Git - llvm/commitdiff
Attempt to workaround MSVC build issue where I suspect an enum class constant 0 is...
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 16 Jan 2017 20:28:59 +0000 (20:28 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 16 Jan 2017 20:28:59 +0000 (20:28 +0000)
I can't reproduce this so far with web compilers, so throwing this at
the bots to see if it sticks.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292155 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/None.h

index 628b3ea8db97ea2c546384381359c595d86d8432..c7a99c61994ecbe29dc45f536c97ad8a39f6ad19 100644 (file)
@@ -19,7 +19,8 @@
 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 };
+// (constant value 1 in an attempt to workaround MSVC build issue... )
+enum class NoneType { None = 1 };
 const NoneType None = NoneType::None;
 }