Skip to content

Commit aafd825

Browse files
committed
Use constexpr to replace static inline
1 parent 18811d4 commit aafd825

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Pass.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ enum class ThinOrFullLTOPhase {
8787
};
8888

8989
#ifndef NDEBUG
90-
static inline const char *to_string(ThinOrFullLTOPhase Phase) {
90+
constexpr const char *to_string(ThinOrFullLTOPhase Phase) {
9191
switch (Phase) {
9292
case ThinOrFullLTOPhase::None:
9393
return "None";

0 commit comments

Comments
 (0)