X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FSupport%2FSmallPtrSet.cpp;h=a80e095ec35a927a7c1a3adb81a71a9b771539be;hb=6c0e1e0fa658f4e7466c6787aedce992ece2db55;hp=f7b8a7723cff35edb09084deff99cb35d64ad5ea;hpb=e3f87943291d589059a9f2838e5dbb05bc91d7dd;p=oota-llvm.git diff --git a/lib/Support/SmallPtrSet.cpp b/lib/Support/SmallPtrSet.cpp index f7b8a7723cf..a80e095ec35 100644 --- a/lib/Support/SmallPtrSet.cpp +++ b/lib/Support/SmallPtrSet.cpp @@ -103,7 +103,7 @@ const void * const *SmallPtrSetImplBase::FindBucketFor(const void *Ptr) const { unsigned ArraySize = CurArraySize; unsigned ProbeAmt = 1; const void *const *Array = CurArray; - const void *const *Tombstone = 0; + const void *const *Tombstone = nullptr; while (1) { // Found Ptr's bucket? if (Array[Bucket] == Ptr) @@ -186,7 +186,6 @@ SmallPtrSetImplBase::SmallPtrSetImplBase(const void **SmallStorage, NumTombstones = that.NumTombstones; } -#if LLVM_HAS_RVALUE_REFERENCES SmallPtrSetImplBase::SmallPtrSetImplBase(const void **SmallStorage, unsigned SmallSize, SmallPtrSetImplBase &&that) { @@ -214,7 +213,6 @@ SmallPtrSetImplBase::SmallPtrSetImplBase(const void **SmallStorage, that.NumElements = 0; that.NumTombstones = 0; } -#endif /// CopyFrom - implement operator= from a smallptrset that has the same pointer /// type, but may have a different small size. @@ -254,7 +252,6 @@ void SmallPtrSetImplBase::CopyFrom(const SmallPtrSetImplBase &RHS) { NumTombstones = RHS.NumTombstones; } -#if LLVM_HAS_RVALUE_REFERENCES void SmallPtrSetImplBase::MoveFrom(unsigned SmallSize, SmallPtrSetImplBase &&RHS) { assert(&RHS != this && "Self-move should be handled by the caller."); @@ -282,7 +279,6 @@ void SmallPtrSetImplBase::MoveFrom(unsigned SmallSize, RHS.NumElements = 0; RHS.NumTombstones = 0; } -#endif void SmallPtrSetImplBase::swap(SmallPtrSetImplBase &RHS) { if (this == &RHS) return;