For PR1194:
authorReid Spencer <rspencer@reidspencer.com>
Sat, 10 Feb 2007 14:04:08 +0000 (14:04 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sat, 10 Feb 2007 14:04:08 +0000 (14:04 +0000)
commitfe3cccfb8f28c3c3bc968b4fd639ec0746cf0854
treea25b7cd5eb33422255202fcec7c7ea6368f399cf
parentc834553b72bbfeb09abc9a7cb8ab1b32d2d36e24
For PR1194:
The bcreader counts on "primitive" types being inserted before they are
referenced in other types. With recent changes to the bcwriter, this fact
became exposed since IntegerType is no longer "primitive". We can no longer
count on all IntegerTypes being inserted early. This patch modifies
getOrCreateTypeSlot to insert any sub-type that can't possibly recurse
before we create the slot for the type. This has the benefit of reducing
the number of OpaqueType objects the reader needs to deal with.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34147 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bytecode/Writer/SlotCalculator.cpp