Skip to content

Commit 788c1e9

Browse files
authored
[AMDGPU] Fix a compile warning caused by unhandled enum class in a switch (llvm#2189)
2 parents e4f9b18 + be0b964 commit 788c1e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/IR/Pass.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,8 @@ const char *llvm::to_string(ThinOrFullLTOPhase Phase) {
296296
return "FullLTOPreLink";
297297
case ThinOrFullLTOPhase::FullLTOPostLink:
298298
return "FullLTOPostLink";
299+
case llvm::ThinOrFullLTOPhase::CustomLTOPostLink:
300+
return "CustomLTOPostLink";
299301
}
300302
llvm_unreachable("invalid phase");
301303
}

0 commit comments

Comments
 (0)