summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/Demangle/MicrosoftDemangle.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Demangle/MicrosoftDemangle.cpp b/llvm/lib/Demangle/MicrosoftDemangle.cpp
index 76f64c8d6be..cf4c4aa41e6 100644
--- a/llvm/lib/Demangle/MicrosoftDemangle.cpp
+++ b/llvm/lib/Demangle/MicrosoftDemangle.cpp
@@ -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];
OpenPOWER on IntegriCloud