Skip to content

Commit f20b44e

Browse files
committed
add unreachable to prevent no-return warnings
1 parent b85a8ef commit f20b44e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2185,6 +2185,7 @@ AMDGPUCodeGenPassBuilder::getRAOptionsForPhase(RegAllocPhase Phase) const {
21852185
return RA_OPTIONS(onlyAllocateVGPRs, "vgpr", true);
21862186
}
21872187

2188+
llvm_unreachable("invalid phase value");
21882189
#undef RA_OPTIONS
21892190
}
21902191

0 commit comments

Comments
 (0)