From cf890beb7ef1148556a45d4a61278a320ef53e16 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Mon, 16 Jan 2017 18:48:52 +0000 Subject: [PATCH] PR31650: Refer to enum constant when initializing llvm::None constant git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292149 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/None.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/ADT/None.h b/include/llvm/ADT/None.h index d69ec17c15f..628b3ea8db9 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 }; -const NoneType None = None; +const NoneType None = NoneType::None; } #endif -- 2.50.1