Don't try to compute the size of an "array" element if the index is 0:
authorVikram S. Adve <vadve@cs.uiuc.edu>
Sun, 13 Oct 2002 21:47:44 +0000 (21:47 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Sun, 13 Oct 2002 21:47:44 +0000 (21:47 +0000)
commit8e22ead3b48ca344347ceda58f80b7d98b0f0364
tree094b4ac19a8e89adf79fda390921e4d132cce60f
parentd2db6c52360b806228a34c552481ccee6e1bf172
Don't try to compute the size of an "array" element if the index is 0:
the size may be unknown, and is not needed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4153 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/TargetData.cpp