forked from OSchip/llvm-project
parent
4a38129468
commit
df03449a0a
|
@ -382,8 +382,7 @@ static bool indexReallyValid(CompositeType *T, unsigned Idx) {
|
||||||
/// function again on a finished iterator will repeatedly return
|
/// function again on a finished iterator will repeatedly return
|
||||||
/// false. SubTypes.back()->getTypeAtIndex(Path.back()) is either an empty
|
/// false. SubTypes.back()->getTypeAtIndex(Path.back()) is either an empty
|
||||||
/// aggregate or a non-aggregate
|
/// aggregate or a non-aggregate
|
||||||
static bool
|
static bool advanceToNextLeafType(SmallVectorImpl<CompositeType *> &SubTypes,
|
||||||
advanceToNextLeafType(SmallVectorImpl<CompositeType *> &SubTypes,
|
|
||||||
SmallVectorImpl<unsigned> &Path) {
|
SmallVectorImpl<unsigned> &Path) {
|
||||||
// First march back up the tree until we can successfully increment one of the
|
// First march back up the tree until we can successfully increment one of the
|
||||||
// coordinates in Path.
|
// coordinates in Path.
|
||||||
|
@ -454,7 +453,7 @@ static bool firstRealType(Type *Next,
|
||||||
|
|
||||||
/// Set the iterator data-structures to the next non-empty, non-aggregate
|
/// Set the iterator data-structures to the next non-empty, non-aggregate
|
||||||
/// subtype.
|
/// subtype.
|
||||||
bool nextRealType(SmallVectorImpl<CompositeType *> &SubTypes,
|
static bool nextRealType(SmallVectorImpl<CompositeType *> &SubTypes,
|
||||||
SmallVectorImpl<unsigned> &Path) {
|
SmallVectorImpl<unsigned> &Path) {
|
||||||
do {
|
do {
|
||||||
if (!advanceToNextLeafType(SubTypes, Path))
|
if (!advanceToNextLeafType(SubTypes, Path))
|
||||||
|
|
Loading…
Reference in New Issue