Preserve the new moduleID field

llvm-svn: 5835
This commit is contained in:
Chris Lattner 2003-04-22 18:02:26 +00:00
parent b5fc5522fb
commit ce0beca3fc

View File

@ -18,7 +18,7 @@
///
Module *CloneModule(const Module *M) {
// First off, we need to create the new module...
Module *New = new Module();
Module *New = new Module(M->getModuleIdentifier());
// Create the value map that maps things from the old module over to the new
// module.