When recursing for the original size of a type, stop if we are at a
authorEric Christopher <echristo@apple.com>
Fri, 16 Dec 2011 23:42:45 +0000 (23:42 +0000)
committerEric Christopher <echristo@apple.com>
Fri, 16 Dec 2011 23:42:45 +0000 (23:42 +0000)
commit2e1b0c0cd9fab8f1841e1039cf39dcceeba70f73
tree629a362bf9529f8b2a7e406d4f2ddcccd4c7e978
parent1a8e8869cafa16d94afcb6f73bc3e0f2f72f70f1
When recursing for the original size of a type, stop if we are at a
pointer or a reference type - we actually just want the size of the
pointer then for that.

Fixes rdar://10335756

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146785 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/DebugInfo.cpp
test/DebugInfo/X86/2011-12-16-BadStructRef.ll [new file with mode: 0644]