diff --git a/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp b/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp index 34253524cc7c..a68c0561cea5 100644 --- a/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp +++ b/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp @@ -1211,7 +1211,7 @@ void EmitGenerateActionMethod (const ToolProperties& P, << Indent2 << "const InputLanguagesSet& InLangs,\n" << Indent2 << "const LanguageMap& LangMap) const\n" << Indent1 << "{\n" - << Indent2 << "const char* cmd;\n" + << Indent2 << "std::string cmd;\n" << Indent2 << "std::vector vec;\n"; // cmd_line is either a string or a 'case' construct.