1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Restore default arguments for llvm2cpp back to health by declaring an

emitted variable to actually have a type (picky, picky, picky!)

llvm-svn: 28625
This commit is contained in:
Reid Spencer 2006-06-01 07:24:29 +00:00
parent b960d7e5d7
commit 4be70bcdc9

View File

@ -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;