From 1214860a787c43da421044b399b4c220e163d9b1 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! llvm-svn: 53202 --- llvm/lib/CodeGen/MachineModuleInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp') diff --git a/llvm/lib/CodeGen/MachineModuleInfo.cpp b/llvm/lib/CodeGen/MachineModuleInfo.cpp index 3d3a9957bb0..149451b8301 100644 --- a/llvm/lib/CodeGen/MachineModuleInfo.cpp +++ b/llvm/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