Skip to content

Commit

Permalink
Pacify GCC, which worries about falling off the end of the switch.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187649 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
CunningBaldrick committed Aug 2, 2013
1 parent e393b73 commit 1cd2ed8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/MC/MCInstPrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ format_object1<int64_t> MCInstPrinter::formatHex(const int64_t Value) const {
return format("%" PRIx64 "h", Value);
}
}
llvm_unreachable("unsupported print style");
}

format_object1<uint64_t> MCInstPrinter::formatHex(const uint64_t Value) const {
Expand All @@ -101,4 +102,5 @@ format_object1<uint64_t> MCInstPrinter::formatHex(const uint64_t Value) const {
else
return format("%" PRIx64 "h", Value);
}
llvm_unreachable("unsupported print style");
}

0 comments on commit 1cd2ed8

Please sign in to comment.