void* is represented as pointer to empty struct {}.
authorTorok Edwin <edwintorok@gmail.com>
Sat, 24 Jan 2009 11:30:49 +0000 (11:30 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Sat, 24 Jan 2009 11:30:49 +0000 (11:30 +0000)
commit629e92b63b91aedfc8fc961b01ae53a1e6c1739f
tree85cae880ebf7c8b49d65c5474abac57ebd406572
parent32ca8657b8c1ef21225370b7b7e159a92413bc6e
void* is represented as pointer to empty struct {}.
Thus we need to check whether the struct is empty before trying to index into
it. This fixes PR3381.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62918 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp