1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Make sure we don't add an empty string to the stringmap

llvm-svn: 271172
This commit is contained in:
David Majnemer 2016-05-29 06:18:06 +00:00
parent a1f3014900
commit 6d741ef1bb

View File

@ -472,7 +472,8 @@ void CVTypeDumperImpl::visitPointer(TypeLeafKind Leaf, PointerRecord &Ptr) {
else if (Ptr.getMode() == PointerMode::Pointer)
TypeName.append("*");
Name = CVTD.saveName(TypeName);
if (!TypeName.empty())
Name = CVTD.saveName(TypeName);
}
}