diff options
author | Chris Lattner <sabre@nondot.org> | 2003-04-24 15:54:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-04-24 15:54:40 +0000 |
commit | 7899b74fdbb58bcb50641703b6f1f212a3aebcb0 (patch) | |
tree | e73770514a69e7d967c35a286bd0b612a5416213 /lib/Transforms/Utils/CloneModule.cpp | |
parent | eea21dd91c5d79b406a2a73d9c4769e272a34aab (diff) |
Make sure to preserve endiannes and pointer size when cloning modules!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5892 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/CloneModule.cpp')
-rw-r--r-- | lib/Transforms/Utils/CloneModule.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Transforms/Utils/CloneModule.cpp b/lib/Transforms/Utils/CloneModule.cpp index 116ae0d4f3..992431619c 100644 --- a/lib/Transforms/Utils/CloneModule.cpp +++ b/lib/Transforms/Utils/CloneModule.cpp @@ -19,6 +19,8 @@ Module *CloneModule(const Module *M) { // First off, we need to create the new module... Module *New = new Module(M->getModuleIdentifier()); + New->setEndianness(M->getEndianness()); + New->setPointerSize(M->getPointerSize()); // Create the value map that maps things from the old module over to the new // module. |