Skip to content

Commit f69e5df

Browse files
committed
add unreachable to prevent no-return warnings
1 parent a4ebecd commit f69e5df

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
@@ -2186,6 +2186,7 @@ AMDGPUCodeGenPassBuilder::getRAOptionsForPhase(RegAllocPhase Phase) const {
21862186
return RA_OPTIONS(onlyAllocateVGPRs, "vgpr", true);
21872187
}
21882188

2189+
llvm_unreachable("invalid phase value");
21892190
#undef RA_OPTIONS
21902191
}
21912192

0 commit comments

Comments
 (0)