Teach DataLayout that ABI alignments for non-aggregate types must be non-zero.
authorOwen Anderson <resistor@mac.com>
Mon, 2 Mar 2015 09:34:59 +0000 (09:34 +0000)
committerOwen Anderson <resistor@mac.com>
Mon, 2 Mar 2015 09:34:59 +0000 (09:34 +0000)
commitc7292fdabe8fb9d0f08f6e8d811f37c286c64dbb
tree01c238385722ddaceec0d7a6a9eb721bc3209803
parentddfdffbb10b3702b1a1e685b1c4e7b7808c222cf
Teach DataLayout that ABI alignments for non-aggregate types must be non-zero.

This manifested as assertions and/or crashes in later phases of optimization,
depending on the build configuration.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230939 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/DataLayout.cpp
test/Assembler/invalid-datalayout22.ll [new file with mode: 0644]