diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-06 20:13:21 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-06 20:13:21 +0000 |
commit | 7e7b6700743285c0af506ac6299ddf82ebd434b9 (patch) | |
tree | 578d2ea1868b77f3dff145df7f8f3fe73272c09e /unittests/ADT/IntrusiveRefCntPtrTest.cpp | |
parent | 4b570baa7e867c652fa7d690585098278082fae9 (diff) |
Diffstat (limited to 'unittests/ADT/IntrusiveRefCntPtrTest.cpp')
-rw-r--r-- | unittests/ADT/IntrusiveRefCntPtrTest.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/unittests/ADT/IntrusiveRefCntPtrTest.cpp b/unittests/ADT/IntrusiveRefCntPtrTest.cpp index 143a8cc49107..83dc13766497 100644 --- a/unittests/ADT/IntrusiveRefCntPtrTest.cpp +++ b/unittests/ADT/IntrusiveRefCntPtrTest.cpp @@ -15,7 +15,9 @@ namespace llvm { namespace { struct SimpleRefCounted : public RefCountedBase<SimpleRefCounted> { SimpleRefCounted() { ++NumInstances; } - SimpleRefCounted(const SimpleRefCounted &) { ++NumInstances; } + SimpleRefCounted(const SimpleRefCounted &) : RefCountedBase() { + ++NumInstances; + } ~SimpleRefCounted() { --NumInstances; } static int NumInstances; |