diff options
author | Chris Lattner <sabre@nondot.org> | 2007-01-29 02:18:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-01-29 02:18:13 +0000 |
commit | ec9bfdc152a870d3c62377ed6855fb3bff69511c (patch) | |
tree | 5b9c579b05ea8ad35175388b3e79208758fd21cd /lib/Linker/LinkModules.cpp | |
parent | c36357c406911ded5a0e2924998d885815370fdb (diff) |
Read from the right place.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33611 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Linker/LinkModules.cpp')
-rw-r--r-- | lib/Linker/LinkModules.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index 527c09359c..59ebdee795 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -851,7 +851,7 @@ Linker::LinkModules(Module *Dest, Module *Src, std::string *ErrorMsg) { if (Dest->getDataLayout().empty()) { if (!Src->getDataLayout().empty()) { - Dest->setDataLayout(Src->getTargetTriple()); + Dest->setDataLayout(Src->getDataLayout()); } else { std::string DataLayout; |