diff options
Diffstat (limited to 'lib/Transforms/Utils/CloneModule.cpp')
-rw-r--r-- | lib/Transforms/Utils/CloneModule.cpp | 2 |
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. |