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

Duncan P. N. Exon Smith via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 23 19:08:24 PDT 2017

dexonsmith 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)
There's no `#include <cassert>` in this file.  Depending on the standard library you're building against, you made need that here.


More information about the cfe-commits mailing list