Skip to content

Commit

Permalink
[llvm-objdump] Add llvm_unreachable to silence GCC warning. NFC.
Browse files Browse the repository at this point in the history
GCC 7 warned about control reaching the end of the non-void function,
despite all 7 LineChar values being handled in the switch.
  • Loading branch information
mstorsjo committed Mar 16, 2020
1 parent 161f70e commit 042eb04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/tools/llvm-objdump/llvm-objdump.cpp
Expand Up @@ -798,6 +798,7 @@ class LiveVariablePrinter {
case LineChar::LabelHoriz:
return IsASCII ? "-" : "";
}
llvm_unreachable("Unexpected LineChar");
}

/// Print live ranges to the right of an existing line. This assumes the
Expand Down

0 comments on commit 042eb04

Please sign in to comment.