summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Demangle
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2018-08-02 17:18:01 +0000
committerZachary Turner <zturner@google.com>2018-08-02 17:18:01 +0000
commit5b0456d0cebf63af93cbef694d9bf0f87fe8eee6 (patch)
treee367b18cae2b9ecc8397f59149024b58e44b0787 /llvm/lib/Demangle
parent1f430693b18fdce5f0a1f21bc8c1740a8f51e523 (diff)
downloadbcm5719-llvm-5b0456d0cebf63af93cbef694d9bf0f87fe8eee6.tar.gz
bcm5719-llvm-5b0456d0cebf63af93cbef694d9bf0f87fe8eee6.zip
Fix a couple of warnings.
llvm-svn: 338739
Diffstat (limited to 'llvm/lib/Demangle')
-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