Skip to content

Commit ef6cedc

Browse files
committed
Mangler: enable mangling verification also in non-assert compiler builds
Not verifying mangled names can result in crashes later in the optimizer in case of mangling errors. Related to rdar://137298914
1 parent b073d3d commit ef6cedc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/Basic/Mangler.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ static bool treeContains(Demangle::NodePointer Nd, Demangle::Node::Kind Kind) {
159159
}
160160

161161
void Mangler::verify(StringRef nameStr) {
162-
#ifndef NDEBUG
163162
SmallString<128> buffer;
164163
if (!nameStr.starts_with(MANGLING_PREFIX_STR) &&
165164
!nameStr.starts_with("_Tt") &&
@@ -191,7 +190,6 @@ void Mangler::verify(StringRef nameStr) {
191190
"original = " << nameStr << "\n"
192191
"remangled = " << Remangled << "\n";
193192
abort();
194-
#endif
195193
}
196194

197195
void Mangler::appendIdentifier(StringRef ident) {

0 commit comments

Comments
 (0)