[llvm] r271172 - Make sure we don't add an empty string to the stringmap
David Majnemer via llvm-commits
llvm-commits at lists.llvm.org
Sat May 28 23:18:06 PDT 2016
Author: majnemer
Date: Sun May 29 01:18:06 2016
New Revision: 271172
URL: http://llvm.org/viewvc/llvm-project?rev=271172&view=rev
Log:
Make sure we don't add an empty string to the stringmap
Modified:
llvm/trunk/lib/DebugInfo/CodeView/TypeDumper.cpp
Modified: llvm/trunk/lib/DebugInfo/CodeView/TypeDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/CodeView/TypeDumper.cpp?rev=271172&r1=271171&r2=271172&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/CodeView/TypeDumper.cpp (original)
+++ llvm/trunk/lib/DebugInfo/CodeView/TypeDumper.cpp Sun May 29 01:18:06 2016
@@ -472,7 +472,8 @@ void CVTypeDumperImpl::visitPointer(Type
else if (Ptr.getMode() == PointerMode::Pointer)
TypeName.append("*");
- Name = CVTD.saveName(TypeName);
+ if (!TypeName.empty())
+ Name = CVTD.saveName(TypeName);
}
}
More information about the llvm-commits
mailing list