summaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/ArrayRecycler.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Support/ArrayRecycler.h')
-rw-r--r--include/llvm/Support/ArrayRecycler.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Support/ArrayRecycler.h b/include/llvm/Support/ArrayRecycler.h
index e974332..36f644a 100644
--- a/include/llvm/Support/ArrayRecycler.h
+++ b/include/llvm/Support/ArrayRecycler.h
@@ -44,10 +44,10 @@ class ArrayRecycler {
// Return NULL if no entries are available.
T *pop(unsigned Idx) {
if (Idx >= Bucket.size())
- return 0;
+ return nullptr;
FreeList *Entry = Bucket[Idx];
if (!Entry)
- return 0;
+ return nullptr;
Bucket[Idx] = Entry->Next;
return reinterpret_cast<T*>(Entry);
}