]> granicus.if.org Git - llvm/commit
DataLayout: Move asserts over to report_fatal_error
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 10 Dec 2014 01:17:08 +0000 (01:17 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 10 Dec 2014 01:17:08 +0000 (01:17 +0000)
commitef6e5490e303bb063a47a0d39f47f96133cb32ad
tree42beb157f52de9f2e6fd15cb656877708e64f416
parent5e40bd7d5f9759411087e3291bd64f7f096afa71
DataLayout: Move asserts over to report_fatal_error

As indicated by the tests, it is possible to feed the AsmParser an
invalid datalayout string.  We should verify the result of parsing this
string regardless of whether or not we have assertions enabled.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223898 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/DataLayout.cpp
test/Assembler/invalid-datalayout1.ll [new file with mode: 0644]
test/Assembler/invalid-datalayout2.ll [new file with mode: 0644]
test/Assembler/invalid-datalayout3.ll [new file with mode: 0644]
test/Assembler/invalid-datalayout4.ll [new file with mode: 0644]
test/Assembler/invalid-datalayout5.bc [new file with mode: 0644]
test/Assembler/invalid-datalayout5.ll [new file with mode: 0644]