Skip to content

Commit 7decd1d

Browse files
committed
Diagnose unsupported
1 parent eb9955e commit 7decd1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,8 @@ bool AMDGPUCallLowering::lowerTailCall(
12461246

12471247
// On GFX12, we can only change the VGPR allocation for wave32.
12481248
if (!ST.isWave32()) {
1249-
LLVM_DEBUG(dbgs() << "Dynamic VGPR mode is only supported for wave32\n");
1249+
F.getContext().diagnose(DiagnosticInfoUnsupported(
1250+
F, "Dynamic VGPR mode is only supported for wave32\n"));
12501251
return false;
12511252
}
12521253

0 commit comments

Comments
 (0)