mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 00:16:25 +00:00
Silence a -Wdangling-else
llvm-svn: 267737
This commit is contained in:
parent
8b365897a4
commit
6a058f1e29
@ -1701,11 +1701,12 @@ AMDGPUAsmParser::parseHwregOp(OperandVector &Operands) {
|
|||||||
// HwRegCode (6) [5:0]
|
// HwRegCode (6) [5:0]
|
||||||
// Offset (5) [10:6]
|
// Offset (5) [10:6]
|
||||||
// WidthMinusOne (5) [15:11]
|
// WidthMinusOne (5) [15:11]
|
||||||
if (HwRegCode < 0 || HwRegCode > 63)
|
if (HwRegCode < 0 || HwRegCode > 63) {
|
||||||
if (IsIdentifier)
|
if (IsIdentifier)
|
||||||
Error(S, "invalid symbolic name of hardware register");
|
Error(S, "invalid symbolic name of hardware register");
|
||||||
else
|
else
|
||||||
Error(S, "invalid code of hardware register: only 6-bit values are legal");
|
Error(S, "invalid code of hardware register: only 6-bit values are legal");
|
||||||
|
}
|
||||||
if (Offset < 0 || Offset > 31)
|
if (Offset < 0 || Offset > 31)
|
||||||
Error(S, "invalid bit offset: only 5-bit values are legal");
|
Error(S, "invalid bit offset: only 5-bit values are legal");
|
||||||
if (Width < 1 || Width > 32)
|
if (Width < 1 || Width > 32)
|
||||||
|
Loading…
Reference in New Issue
Block a user