Skip to content

Commit be0b964

Browse files
committed
[AMDGPU] Fix a compile warning caused by unhandled enum class in a switch
1 parent 3cd08b5 commit be0b964

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)