aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/CloneModule.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-04-22 18:02:26 +0000
committerChris Lattner <sabre@nondot.org>2003-04-22 18:02:26 +0000
commit37f59419b8680fd1814e71387c8354ad64bd670b (patch)
tree36322ce2e75cde11d742f83ffea276c432fea650 /lib/Transforms/Utils/CloneModule.cpp
parent678c6a089da468bc20661922cf63deedef2d9b7a (diff)
Preserve the new moduleID field
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5835 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/CloneModule.cpp')
-rw-r--r--lib/Transforms/Utils/CloneModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/CloneModule.cpp b/lib/Transforms/Utils/CloneModule.cpp
index 223e3fd88c..116ae0d4f3 100644
--- a/lib/Transforms/Utils/CloneModule.cpp
+++ b/lib/Transforms/Utils/CloneModule.cpp
@@ -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.