diff options
author | Chris Lattner <sabre@nondot.org> | 2007-01-29 02:18:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-01-29 02:18:13 +0000 |
commit | 78bddc388cd47eb801870fa02bc99b9c50e5de3e (patch) | |
tree | 7aefa27cfc241c8279c16eb937df7867dfae3e9a /llvm/lib/Linker/LinkModules.cpp | |
parent | 7f3bd82ab9631dbc40da799cb445b7d6a9b81aeb (diff) | |
download | bcm5719-llvm-78bddc388cd47eb801870fa02bc99b9c50e5de3e.tar.gz bcm5719-llvm-78bddc388cd47eb801870fa02bc99b9c50e5de3e.zip |
Read from the right place.
llvm-svn: 33611
Diffstat (limited to 'llvm/lib/Linker/LinkModules.cpp')
-rw-r--r-- | llvm/lib/Linker/LinkModules.cpp | 2 |
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; |