diff options
author | Erik Pilkington <erik.pilkington@gmail.com> | 2017-05-24 20:53:13 +0000 |
---|---|---|
committer | Erik Pilkington <erik.pilkington@gmail.com> | 2017-05-24 20:53:13 +0000 |
commit | 4072e8fd76febee37f60aeda76d6d9f5e3791daa (patch) | |
tree | 5ab76c494443e95bd2e923d5b4bced290c5adad2 /src | |
parent | 413296b7c32e09b1e01c21bca714c80003f4f499 (diff) |
[Demangler] Remove a failing assert introduced in r303718
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@303806 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'src')
-rw-r--r-- | src/cxa_demangle.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cxa_demangle.cpp b/src/cxa_demangle.cpp index fd484a4..d8734fb 100644 --- a/src/cxa_demangle.cpp +++ b/src/cxa_demangle.cpp @@ -15,7 +15,6 @@ #include <algorithm> #include <string> #include <numeric> -#include <cassert> #include <cstdlib> #include <cstring> #include <cctype> @@ -3034,8 +3033,7 @@ parse_unnamed_type_name(const char* first, const char* last, C& db) long k1 = static_cast<long>(db.names.size()); if (t1 == t0) break; - assert(k0 <= k1 && "parse_type() mutated the name stack"); - if (k1 == k0) + if (k0 >= k1) return first; // If the call to parse_type above found a pack expansion // substitution, then multiple names could have been |