summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/MetadataLoader.cpp
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-12-23 02:20:12 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-12-23 02:20:12 +0000
commit37c178b6f52d4d01326801915be0592992466dab (patch)
tree603e0f8dd65ab23279ab09e47bb26f330aa5b85c /llvm/lib/Bitcode/Reader/MetadataLoader.cpp
parent5ae6170fc29271ea76c18c09ef102f8613ae70fa (diff)
downloadbcm5719-llvm-37c178b6f52d4d01326801915be0592992466dab.tar.gz
bcm5719-llvm-37c178b6f52d4d01326801915be0592992466dab.zip
MetadataLoader: Reinitialize MinFwdRef/MaxFwdRef after resolving cycles (NFC)
This put the Loader back in a consistent state. llvm-svn: 290409
Diffstat (limited to 'llvm/lib/Bitcode/Reader/MetadataLoader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/MetadataLoader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Reader/MetadataLoader.cpp b/llvm/lib/Bitcode/Reader/MetadataLoader.cpp
index 93212b0aa77..c12bdc09f5d 100644
--- a/llvm/lib/Bitcode/Reader/MetadataLoader.cpp
+++ b/llvm/lib/Bitcode/Reader/MetadataLoader.cpp
@@ -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,
OpenPOWER on IntegriCloud