[AArch64] translateLocChar - silence dead code warning

Remove default case from switch and return None after the switch()
This commit is contained in:
Simon Pilgrim 2022-02-06 16:32:16 +00:00
parent d3f966c6f0
commit 7275de7fb2
1 changed files with 1 additions and 3 deletions

View File

@ -18,10 +18,8 @@ static Optional<AlignStyle> translateLocChar(char C) {
return AlignStyle::Center;
case '+':
return AlignStyle::Right;
default:
return None;
}
LLVM_BUILTIN_UNREACHABLE;
return None;
}
bool formatv_object_base::consumeFieldLayout(StringRef &Spec, AlignStyle &Where,