Read from the right place.

llvm-svn: 33611
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp
index 527c093..59ebdee 100644
--- a/llvm/lib/Linker/LinkModules.cpp
+++ b/llvm/lib/Linker/LinkModules.cpp
@@ -851,7 +851,7 @@
 
   if (Dest->getDataLayout().empty()) {
     if (!Src->getDataLayout().empty()) {
-      Dest->setDataLayout(Src->getTargetTriple());
+      Dest->setDataLayout(Src->getDataLayout());
     } else {
       std::string DataLayout;