From d36ad926f228d4650e27cec12fe80fe7327c5be7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 22 Apr 2003 18:02:26 +0000 Subject: Preserve the new moduleID field llvm-svn: 5835 --- llvm/lib/Transforms/Utils/CloneModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/Utils/CloneModule.cpp') diff --git a/llvm/lib/Transforms/Utils/CloneModule.cpp b/llvm/lib/Transforms/Utils/CloneModule.cpp index 223e3fd88cd..116ae0d4f3f 100644 --- a/llvm/lib/Transforms/Utils/CloneModule.cpp +++ b/llvm/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. -- cgit v1.2.3