MetadataLoader: Reinitialize MinFwdRef/MaxFwdRef after resolving cycles (NFC)

This put the Loader back in a consistent state.

llvm-svn: 290409
This commit is contained in:
Mehdi Amini 2016-12-23 02:20:12 +00:00
parent 5ae6170fc2
commit 37c178b6f5
1 changed files with 2 additions and 0 deletions

View File

@ -295,6 +295,8 @@ void BitcodeReaderMetadataList::tryToResolveCycles() {
// Make sure we return early again until there's another forward ref.
AnyFwdRefs = false;
MinFwdRef = 0;
MaxFwdRef = 0;
}
void BitcodeReaderMetadataList::addTypeRef(MDString &UUID,