though it isn't the case here, the key of a StringMap can
authorChris Lattner <sabre@nondot.org>
Thu, 14 Jul 2011 18:21:58 +0000 (18:21 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 14 Jul 2011 18:21:58 +0000 (18:21 +0000)
conceptually have nuls in it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135165 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/LLVMCConfigurationEmitter.cpp

index 090faf5085560c7075f09c8e66d2561ccb59f2c9..cd0cbeb1c6b308ead07dd7a242e682e706e1bc29 100644 (file)
@@ -2969,8 +2969,8 @@ void EmitHookDeclarations(const ToolDescriptions& ToolDescs,
 
   for (HookInfoMap::const_iterator B = HookNames.begin(),
          E = HookNames.end(); B != E; ++B) {
-    const char* HookName = B->first();
-    const HookInfoInfo = B->second;
+    StringRef HookName = B->first();
+    const HookInfo &Info = B->second;
 
     O.indent(Indent1) << "std::string " << HookName << "(";