mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-05 19:29:01 +00:00
Avoid dangling else warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126004 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0eeca44046
commit
4b19c9865e
@ -1009,11 +1009,12 @@ tryParseMSRMaskOperand(SmallVectorImpl<MCParsedAsmOperand*> &Operands) {
|
|||||||
.Case("nzcvqg", 0xc) // same as CPSR_fs
|
.Case("nzcvqg", 0xc) // same as CPSR_fs
|
||||||
.Default(~0U);
|
.Default(~0U);
|
||||||
|
|
||||||
if (FlagsVal == ~0U)
|
if (FlagsVal == ~0U) {
|
||||||
if (!Flags.empty())
|
if (!Flags.empty())
|
||||||
return MatchOperand_NoMatch;
|
return MatchOperand_NoMatch;
|
||||||
else
|
else
|
||||||
FlagsVal = 0; // No flag
|
FlagsVal = 0; // No flag
|
||||||
|
}
|
||||||
} else if (SpecReg == "cpsr" || SpecReg == "spsr") {
|
} else if (SpecReg == "cpsr" || SpecReg == "spsr") {
|
||||||
for (int i = 0, e = Flags.size(); i != e; ++i) {
|
for (int i = 0, e = Flags.size(); i != e; ++i) {
|
||||||
unsigned Flag = StringSwitch<unsigned>(Flags.substr(i, 1))
|
unsigned Flag = StringSwitch<unsigned>(Flags.substr(i, 1))
|
||||||
|
Loading…
Reference in New Issue
Block a user