Skip to content

Commit 79b9250

Browse files
kazutakahiratavarun-r-mallya
authored andcommitted
[Support] Use "static constexpr" for a constant in ProcessInfo (NFC) (#165192)
1 parent 7d3fbca commit 79b9250

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Support/Program.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ typedef procid_t process_t;
4545

4646
/// This struct encapsulates information about a process.
4747
struct ProcessInfo {
48-
enum : procid_t { InvalidPid = 0 };
48+
static constexpr procid_t InvalidPid = 0;
4949

5050
procid_t Pid; /// The process identifier.
5151
process_t Process; /// Platform-dependent process object.

0 commit comments

Comments
 (0)