mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
Read from the right place.
llvm-svn: 33611
This commit is contained in:
parent
e9c8a05b70
commit
b7ffc667c3
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user