case Blob:
return false;
}
- llvm_unreachable("Invalid encoding");
+ report_fatal_error("Invalid encoding");
}
/// isChar6 - Return true if this character is legal in the Char6 encoding.
/// specialized format instead of the fully-general, fully-vbr, format.
class BitCodeAbbrev : public RefCountedBase<BitCodeAbbrev> {
SmallVector<BitCodeAbbrevOp, 32> OperandList;
- ~BitCodeAbbrev() {}
- friend class RefCountedBase; // Only RefCountedBase is allowed to delete.
+ // Only RefCountedBase is allowed to delete.
+ ~BitCodeAbbrev() = default;
+ friend class RefCountedBase<BitCodeAbbrev>;
public:
unsigned getNumOperandInfos() const {