mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Fix build warning introduced in r270552 "[AMDGPU][llvm-mc] Disassembler: support for TTMP/TBA/TMA registers."
llvm-svn: 270859
This commit is contained in:
parent
3ed5f417f8
commit
d58a59d13c
@ -359,7 +359,8 @@ MCOperand AMDGPUDisassembler::decodeSrcOp(const OpWidthTy Width, unsigned Val) c
|
||||
if (VGPR_MIN <= Val && Val <= VGPR_MAX) {
|
||||
return createRegOperand(getVgprClassId(Width), Val - VGPR_MIN);
|
||||
}
|
||||
if (SGPR_MIN <= Val && Val <= SGPR_MAX) {
|
||||
if (Val <= SGPR_MAX) {
|
||||
assert(SGPR_MIN == 0); // "SGPR_MIN <= Val" is always true and causes compilation warning.
|
||||
return createSRegOperand(getSgprClassId(Width), Val - SGPR_MIN);
|
||||
}
|
||||
if (TTMP_MIN <= Val && Val <= TTMP_MAX) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user