diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index f6c7d032524..39d5747be2b 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -1219,7 +1219,9 @@ Linker::LinkModules(Module *Dest, Module *Src, std::string *ErrorMsg) { errs() << "WARNING: Linking two modules of different data layouts!\n"; if (!Src->getTargetTriple().empty() && Dest->getTargetTriple() != Src->getTargetTriple()) - errs() << "WARNING: Linking two modules of different target triples!\n"; + errs() << "WARNING: Linking two modules of different target triples: '" + << Src->getTargetTriple() << "' and '" << Dest->getDataLayout() + << "'\n"; // Append the module inline asm string. if (!Src->getModuleInlineAsm().empty()) {