summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-01-29 02:18:13 +0000
committerChris Lattner <sabre@nondot.org>2007-01-29 02:18:13 +0000
commit78bddc388cd47eb801870fa02bc99b9c50e5de3e (patch)
tree7aefa27cfc241c8279c16eb937df7867dfae3e9a
parent7f3bd82ab9631dbc40da799cb445b7d6a9b81aeb (diff)
downloadbcm5719-llvm-78bddc388cd47eb801870fa02bc99b9c50e5de3e.tar.gz
bcm5719-llvm-78bddc388cd47eb801870fa02bc99b9c50e5de3e.zip
Read from the right place.
llvm-svn: 33611
-rw-r--r--llvm/lib/Linker/LinkModules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp
index 527c09359cb..59ebdee7954 100644
--- a/llvm/lib/Linker/LinkModules.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud