[llvm] r290409 - MetadataLoader: Reinitialize MinFwdRef/MaxFwdRef after resolving cycles (NFC)
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 22 18:20:12 PST 2016
Author: mehdi_amini
Date: Thu Dec 22 20:20:12 2016
New Revision: 290409
URL: http://llvm.org/viewvc/llvm-project?rev=290409&view=rev
Log:
MetadataLoader: Reinitialize MinFwdRef/MaxFwdRef after resolving cycles (NFC)
This put the Loader back in a consistent state.
Modified:
llvm/trunk/lib/Bitcode/Reader/MetadataLoader.cpp
Modified: llvm/trunk/lib/Bitcode/Reader/MetadataLoader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/MetadataLoader.cpp?rev=290409&r1=290408&r2=290409&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Reader/MetadataLoader.cpp (original)
+++ llvm/trunk/lib/Bitcode/Reader/MetadataLoader.cpp Thu Dec 22 20:20:12 2016
@@ -295,6 +295,8 @@ void BitcodeReaderMetadataList::tryToRes
// Make sure we return early again until there's another forward ref.
AnyFwdRefs = false;
+ MinFwdRef = 0;
+ MaxFwdRef = 0;
}
void BitcodeReaderMetadataList::addTypeRef(MDString &UUID,
More information about the llvm-commits
mailing list