diff options
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. |