[LTO] Don't crash on a BitcodeFile without DataLayout.
authorDavide Italiano <davide@freebsd.org>
Sat, 16 Apr 2016 01:33:33 +0000 (01:33 +0000)
committerDavide Italiano <davide@freebsd.org>
Sat, 16 Apr 2016 01:33:33 +0000 (01:33 +0000)
commit493b683f79b95b6745bc59641b79da830b413bff
tree9e7b24949bd120f08035e84a60df31bfc1e520cb
parentf0d73f95c15f909c6034f1735632695248bb75a8
[LTO] Don't crash on a BitcodeFile without DataLayout.

Emit an error instead.

llvm-svn: 266504
lld/ELF/LTO.cpp
lld/test/ELF/lto/invalid-bitcode.ll [new file with mode: 0644]