Add llvm_unreachable after fully covered switch (NFC)

This fixes a compiler warning for some version of GCC.
This commit is contained in:
Mehdi Amini 2021-09-15 17:52:39 +00:00
parent 258e27aae1
commit 13237c3b1e
1 changed files with 1 additions and 0 deletions

View File

@ -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); }