Restore default arguments for llvm2cpp back to health by declaring an
emitted variable to actually have a type (picky, picky, picky!)
llvm-svn: 28625
diff --git a/llvm/tools/llvm2cpp/CppWriter.cpp b/llvm/tools/llvm2cpp/CppWriter.cpp
index 36c9394..c7f3b7c 100644
--- a/llvm/tools/llvm2cpp/CppWriter.cpp
+++ b/llvm/tools/llvm2cpp/CppWriter.cpp
@@ -1405,7 +1405,7 @@
) {
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;