forked from OSchip/llvm-project
Add llvm_unreachable after fully covered switch (NFC)
This fixes a compiler warning for some version of GCC.
This commit is contained in:
parent
258e27aae1
commit
13237c3b1e
|
@ -668,6 +668,7 @@ bool CppEmitter::shouldMapToUnsigned(IntegerType::SignednessSemantics val) {
|
|||
case IntegerType::Unsigned:
|
||||
return true;
|
||||
}
|
||||
llvm_unreachable("Unexpected IntegerType::SignednessSemantics");
|
||||
}
|
||||
|
||||
bool CppEmitter::hasValueInScope(Value val) { return valueMapper.count(val); }
|
||||
|
|
Loading…
Reference in New Issue