diff --git a/lib/Support/FoldingSet.cpp b/lib/Support/FoldingSet.cpp index 753eb240be8..1e8c732a148 100644 --- a/lib/Support/FoldingSet.cpp +++ b/lib/Support/FoldingSet.cpp @@ -221,8 +221,10 @@ void FoldingSetImpl::GrowHashTable() { /// FindNodeOrInsertPos - Look up the node specified by ID. If it exists, /// return it. If not, return the insertion token that will make insertion /// faster. -FoldingSetImpl::Node *FoldingSetImpl::FindNodeOrInsertPos(const FoldingSetNodeID &ID, - void *&InsertPos) { +FoldingSetImpl::Node +*FoldingSetImpl::FindNodeOrInsertPos(const FoldingSetNodeID &ID, + void *&InsertPos) { + void **Bucket = GetBucketFor(ID, Buckets, NumBuckets); void *Probe = *Bucket;