Skip to content

Commit

Permalink
[ADT] Remove None=1 MSVC workaround
Browse files Browse the repository at this point in the history
This workaround from 0cd22f9 (2017-01) is very
likely unneeded.
  • Loading branch information
MaskRay committed Nov 20, 2022
1 parent 1fa870b commit f49c2a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llvm/include/llvm/ADT/None.h
Expand Up @@ -19,8 +19,7 @@
namespace llvm {
/// A simple null object to allow implicit construction of Optional<T>
/// and similar types without having to spell out the specialization's name.
// (constant value 1 in an attempt to workaround MSVC build issue... )
enum class NoneType { None = 1 };
enum class NoneType { None };
const NoneType None = NoneType::None;
}

Expand Down

0 comments on commit f49c2a8

Please sign in to comment.