mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-12 06:06:19 +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
|
||||
.Default(~0U);
|
||||
|
||||
if (FlagsVal == ~0U)
|
||||
if (FlagsVal == ~0U) {
|
||||
if (!Flags.empty())
|
||||
return MatchOperand_NoMatch;
|
||||
else
|
||||
FlagsVal = 0; // No flag
|
||||
}
|
||||
} else if (SpecReg == "cpsr" || SpecReg == "spsr") {
|
||||
for (int i = 0, e = Flags.size(); i != e; ++i) {
|
||||
unsigned Flag = StringSwitch<unsigned>(Flags.substr(i, 1))
|
||||
|
Loading…
Reference in New Issue
Block a user