From 3364e527bc2b90c57871a6df6ffd7a8555da610e Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Thu, 1 Jun 2006 07:24:29 +0000 Subject: Restore default arguments for llvm2cpp back to health by declaring an emitted variable to actually have a type (picky, picky, picky!) llvm-svn: 28625 --- llvm/tools/llvm2cpp/CppWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/tools/llvm2cpp/CppWriter.cpp') diff --git a/llvm/tools/llvm2cpp/CppWriter.cpp b/llvm/tools/llvm2cpp/CppWriter.cpp index 36c93944046..c7f3b7cc69c 100644 --- a/llvm/tools/llvm2cpp/CppWriter.cpp +++ b/llvm/tools/llvm2cpp/CppWriter.cpp @@ -1405,7 +1405,7 @@ void CppWriter::printModule( ) { Out << "\nModule* " << fname << "() {\n"; Out << "\n// Module Construction\n"; - Out << "\nmod = new Module(\"" << mName << "\");\n"; + Out << "\nModule* mod = new Module(\"" << mName << "\");\n"; Out << "mod->setEndianness("; switch (TheModule->getEndianness()) { case Module::LittleEndian: Out << "Module::LittleEndian);\n"; break; -- cgit v1.2.3