Fix for PR#330.
authorJohn Criswell <criswell@uiuc.edu>
Thu, 6 May 2004 21:18:08 +0000 (21:18 +0000)
committerJohn Criswell <criswell@uiuc.edu>
Thu, 6 May 2004 21:18:08 +0000 (21:18 +0000)
commit7775c1f1363ca92609f3529ea05bbaad88a09926
treec5b7116f29aa724b5fc6d7cd5a9997f02e03e298
parent817d8d304688457ce57296fa8c5c5f62b682aa74
Fix for PR#330.
When looking at getelementptr instructions, make sure to use a forwarded
type.  We want to do this because a DerivedType may drop its uses and then
refine its users, who may then use another user who hasn't been refined yet.
By getting the forwarded type, we always ensure that we're looking at a
Type that isn't in a halfway refined state.

Now, I should be able to put this stuff in PATypeHandle, but it doesn't work
for some reason.  This should do for now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13386 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/iMemory.cpp