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)
commit770fd82f390b14f0f245b33d19167ec32727c5d2
treea5e93698fa0480071bda6fea2c7ff7d089fb0209
parent970ac60573da3cce98934d73f65285bbcbfb5ba3
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.

llvm-svn: 223684
llvm/lib/IR/ConstantFold.cpp
llvm/test/Assembler/ConstantExprNoFold.ll