]> granicus.if.org Git - llvm/commitdiff
MetadataLoader: Reinitialize MinFwdRef/MaxFwdRef after resolving cycles (NFC)
authorMehdi Amini <mehdi.amini@apple.com>
Fri, 23 Dec 2016 02:20:12 +0000 (02:20 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Fri, 23 Dec 2016 02:20:12 +0000 (02:20 +0000)
This put the Loader back in a consistent state.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290409 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bitcode/Reader/MetadataLoader.cpp

index 93212b0aa77547896c8760cde00edb0b309fa5cc..c12bdc09f5dc78aaf542b513965c28b2d416facf 100644 (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,