From 0d4ecb6ff57e229bd27067c5214aedb927345d94 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Wed, 3 Feb 2016 21:45:39 +0000 Subject: [PATCH] Replace static const int with enum to fix obnoxious linker errors about a missing definition llvm-svn: 259712 --- llvm/include/llvm/Support/Program.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/Support/Program.h b/llvm/include/llvm/Support/Program.h index a5e6cb5..acd1bcd 100644 --- a/llvm/include/llvm/Support/Program.h +++ b/llvm/include/llvm/Support/Program.h @@ -44,7 +44,7 @@ struct ProcessInfo { #error "ProcessInfo is not defined for this platform!" #endif - static const ProcessId InvalidPid = 0; + enum : ProcessId { InvalidPid = 0 }; /// The process identifier. ProcessId Pid; -- 2.7.4