[llvm] r259712 - Replace static const int with enum to fix obnoxious linker errors about a missing definition
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 3 13:45:39 PST 2016
Author: rnk
Date: Wed Feb 3 15:45:39 2016
New Revision: 259712
URL: http://llvm.org/viewvc/llvm-project?rev=259712&view=rev
Log:
Replace static const int with enum to fix obnoxious linker errors about a missing definition
Modified:
llvm/trunk/include/llvm/Support/Program.h
Modified: llvm/trunk/include/llvm/Support/Program.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Program.h?rev=259712&r1=259711&r2=259712&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Program.h (original)
+++ llvm/trunk/include/llvm/Support/Program.h Wed Feb 3 15:45:39 2016
@@ -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;
More information about the llvm-commits
mailing list