diff --git a/include/llvm/ADT/FoldingSet.h b/include/llvm/ADT/FoldingSet.h index 7629301066e..f34a62d4f4c 100644 --- a/include/llvm/ADT/FoldingSet.h +++ b/include/llvm/ADT/FoldingSet.h @@ -348,7 +348,7 @@ protected: explicit FoldingSetBucketIteratorImpl(void **Bucket); FoldingSetBucketIteratorImpl(void **Bucket, bool) - : Ptr(reinterpret_cast(Bucket)) {} + : Ptr(Bucket) {} void advance() { void *Probe = static_cast(Ptr)->getNextInBucket();