Fix a couple of warnings.

llvm-svn: 338739
This commit is contained in:
Zachary Turner 2018-08-02 17:18:01 +00:00
parent 1f430693b1
commit 5b0456d0ce
1 changed files with 2 additions and 1 deletions

View File

@ -885,6 +885,7 @@ namespace {
class Demangler : public NameResolver {
public:
Demangler() = default;
virtual ~Demangler() = default;
// You are supposed to call parse() first and then check if error is true. If
// it is false, call output() to write the formatted name to the given stream.
@ -2039,7 +2040,7 @@ Demangler::demangleTemplateParameterList(StringView &MangledName) {
StringView Demangler::resolve(StringView N) {
assert(N.size() == 1 && isdigit(N[0]));
int Digit = N[0] - '0';
size_t Digit = N[0] - '0';
if (Digit >= BackRefCount)
return N;
return BackReferences[Digit];