From ec9bfdc152a870d3c62377ed6855fb3bff69511c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 29 Jan 2007 02:18:13 +0000 Subject: [PATCH] Read from the right place. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33611 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Linker/LinkModules.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index 527c09359cb..59ebdee7954 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; -- 2.34.1