From 667a68b96aad48c053d6678ee5cb6d440072e81a Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 7 Jul 2008 20:59:31 +0000 Subject: Use StringMap for greater justice! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53202 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/MachineModuleInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CodeGen/MachineModuleInfo.cpp') diff --git a/lib/CodeGen/MachineModuleInfo.cpp b/lib/CodeGen/MachineModuleInfo.cpp index 3d3a9957bb..149451b830 100644 --- a/lib/CodeGen/MachineModuleInfo.cpp +++ b/lib/CodeGen/MachineModuleInfo.cpp @@ -1321,7 +1321,7 @@ const StructType *DISerializer::getTagType(DebugInfoDesc *DD) { /// Constant *DISerializer::getString(const std::string &String) { // Check string cache for previous edition. - Constant *&Slot = StringCache[String.c_str()]; + Constant *&Slot = StringCache[String]; // Return Constant if previously defined. if (Slot) return Slot; -- cgit v1.2.3-18-g5258