[llvm] r338739 - Fix a couple of warnings.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 2 10:18:01 PDT 2018
Author: zturner
Date: Thu Aug 2 10:18:01 2018
New Revision: 338739
URL: http://llvm.org/viewvc/llvm-project?rev=338739&view=rev
Log:
Fix a couple of warnings.
Modified:
llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp
Modified: llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp?rev=338739&r1=338738&r2=338739&view=diff
==============================================================================
--- llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp (original)
+++ llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp Thu Aug 2 10:18:01 2018
@@ -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 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];
More information about the llvm-commits
mailing list