BitcodeWriter: WorkList => Worklist, NFC

I have no idea how I chose two different spellings in the space of a
couple of weeks, but now I can't remember what to use where.  Choose
"Worklist".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266582 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith 2016-04-18 01:24:58 +00:00
parent bd1968ac09
commit 35f771e8a9

View File

@ -575,10 +575,10 @@ bool ValueEnumerator::insertMetadata(unsigned F, const Metadata *MD) {
}
void ValueEnumerator::dropFunctionFromOps(const MDNode &N) {
SmallVector<const MDNode *, 64> WorkList;
WorkList.push_back(&N);
while (!WorkList.empty()) {
for (const Metadata *Op : WorkList.pop_back_val()->operands()) {
SmallVector<const MDNode *, 64> Worklist;
Worklist.push_back(&N);
while (!Worklist.empty()) {
for (const Metadata *Op : Worklist.pop_back_val()->operands()) {
if (!Op)
continue;
@ -594,7 +594,7 @@ void ValueEnumerator::dropFunctionFromOps(const MDNode &N) {
// Drop the tag, and if it's a node (with potential operands), queue it.
Entry.F = 0;
if (auto *OpN = dyn_cast<MDNode>(Op))
WorkList.push_back(OpN);
Worklist.push_back(OpN);
}
}
}