projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eea21dd
)
Make sure to preserve endiannes and pointer size when cloning modules!
author
Chris Lattner
<sabre@nondot.org>
Thu, 24 Apr 2003 15:54:40 +0000
(15:54 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 24 Apr 2003 15:54:40 +0000
(15:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5892
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/CloneModule.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/CloneModule.cpp
b/lib/Transforms/Utils/CloneModule.cpp
index 116ae0d4f3f280e2a17f5d95bde31be9f96dd35d..992431619c9796de53f66054786abbfc9ec76dd5 100644
(file)
--- 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.