commit | 78bddc388cd47eb801870fa02bc99b9c50e5de3e | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Mon Jan 29 02:18:13 2007 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Mon Jan 29 02:18:13 2007 +0000 |
tree | 7aefa27cfc241c8279c16eb937df7867dfae3e9a | |
parent | 7f3bd82ab9631dbc40da799cb445b7d6a9b81aeb [diff] [blame] |
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;