Read from the right place.
authorChris Lattner <sabre@nondot.org>
Mon, 29 Jan 2007 02:18:13 +0000 (02:18 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 29 Jan 2007 02:18:13 +0000 (02:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33611 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Linker/LinkModules.cpp

index 527c09359cb7882931451f2ecb41fd937e207985..59ebdee79546982d967c2df11f5988d31ec2d7a3 100644 (file)
@@ -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;