[PATCH] D33368: [libcxxabi][demangler] Fix a crash in the demangler

Erik Pilkington via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 23 22:43:56 PDT 2017

erik.pilkington added inline comments.

Comment at: src/cxa_demangle.cpp:3036
-                    if (db.names.size() < 2)
+                    assert(k0 <= k1 && "parse_type() mutated the name stack");
+                    if (k1 == k0)
dexonsmith wrote:
> There's no `#include <cassert>` in this file.  Depending on the standard library you're building against, you made need that here.
Sure, I'll commit this with that change.


More information about the cfe-commits mailing list