ConstantFold: Zero-sized globals might land on top of another global
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 8 Dec 2014 19:35:31 +0000 (19:35 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 8 Dec 2014 19:35:31 +0000 (19:35 +0000)
commit8eef439528e2113443fd18a3a2c39cf885bf7aec
tree14bd10f4422d67d5d9f14a9be4bac45c440ee9e6
parentabe81e4794010a2f6a859a513edd7e7a5def2aa1
ConstantFold: Zero-sized globals might land on top of another global

A zero sized array is zero sized and might share its address with
another global.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223684 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/ConstantFold.cpp
test/Assembler/ConstantExprNoFold.ll