From 00efd504766a0b1261792eca5b67643555c478eb Mon Sep 17 00:00:00 2001 From: Erik Pilkington Date: Wed, 24 May 2017 20:53:13 +0000 Subject: [PATCH] [Demangler] Remove a failing assert introduced in r303718 llvm-svn: 303806 --- libcxxabi/src/cxa_demangle.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libcxxabi/src/cxa_demangle.cpp b/libcxxabi/src/cxa_demangle.cpp index fd484a4..d8734fb 100644 --- a/libcxxabi/src/cxa_demangle.cpp +++ b/libcxxabi/src/cxa_demangle.cpp @@ -15,7 +15,6 @@ #include #include #include -#include #include #include #include @@ -3034,8 +3033,7 @@ parse_unnamed_type_name(const char* first, const char* last, C& db) long k1 = static_cast(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 -- 2.7.4