Only override module datalayout for generic targets.
Doing it for all targets was causing a number of tests to fail. (Actual root cause not determined.)
This commit is contained in:
@@ -625,7 +625,8 @@ AddBitcodeToModule(const unsigned char *bitcode, int length,
|
||||
// targets having a layout with 16-bit alignment for 16xi1 vectors.
|
||||
// As long as builtins-c.c doesn't have any 16xi1 vector types
|
||||
// (which it shouldn't!), then this override is safe.
|
||||
bcModule->setDataLayout(module->getDataLayout());
|
||||
if (g->target.isa == Target::GENERIC)
|
||||
bcModule->setDataLayout(module->getDataLayout());
|
||||
|
||||
std::string(linkError);
|
||||
if (llvm::Linker::LinkModules(module, bcModule,
|
||||
|
||||
Reference in New Issue
Block a user