Mips: Silence a -Wcovered-switch-default
Remove a default label which covered no enumerators, replace it with a llvm_unreachable. No functionality changed. llvm-svn: 212729
This commit is contained in:
		
							parent
							
								
									6e3c63064a
								
							
						
					
					
						commit
						99ef236542
					
				| 
						 | 
					@ -23,9 +23,9 @@ uint8_t MipsABIFlagsSection::getFpABIValue() {
 | 
				
			||||||
    if (Is32BitABI)
 | 
					    if (Is32BitABI)
 | 
				
			||||||
      return OddSPReg ? Val_GNU_MIPS_ABI_FP_64 : Val_GNU_MIPS_ABI_FP_64A;
 | 
					      return OddSPReg ? Val_GNU_MIPS_ABI_FP_64 : Val_GNU_MIPS_ABI_FP_64A;
 | 
				
			||||||
    return Val_GNU_MIPS_ABI_FP_DOUBLE;
 | 
					    return Val_GNU_MIPS_ABI_FP_DOUBLE;
 | 
				
			||||||
  default:
 | 
					 | 
				
			||||||
    return 0;
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  llvm_unreachable("unexpected fp abi value");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
StringRef MipsABIFlagsSection::getFpABIString(FpABIKind Value) {
 | 
					StringRef MipsABIFlagsSection::getFpABIString(FpABIKind Value) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue