aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/ADT/BitVector.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-05-29 19:52:31 +0000
committerDan Gohman <gohman@apple.com>2008-05-29 19:52:31 +0000
commit1baa88e3de8947b02d9ef4caa73e5860f048ec6e (patch)
treeb84158d384b79ae4588a97757781b1f30a0c8333 /include/llvm/ADT/BitVector.h
parent21323f3a829df0e6d9b4566a551619a01e269ba6 (diff)
Prune and tidy #includes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51697 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/BitVector.h')
-rw-r--r--include/llvm/ADT/BitVector.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/ADT/BitVector.h b/include/llvm/ADT/BitVector.h
index fccb1c6e8a..a2f273df4a 100644
--- a/include/llvm/ADT/BitVector.h
+++ b/include/llvm/ADT/BitVector.h
@@ -17,7 +17,6 @@
#include "llvm/Support/MathExtras.h"
#include <algorithm>
#include <cassert>
-#include <cstdlib>
#include <cstring>
namespace llvm {
@@ -65,7 +64,7 @@ public:
/// BitVector default ctor - Creates an empty bitvector.
BitVector() : Size(0), Capacity(0) {
- Bits = NULL;
+ Bits = 0;
}
/// BitVector ctor - Creates a bitvector of specified number of bits. All
@@ -81,7 +80,7 @@ public:
/// BitVector copy ctor.
BitVector(const BitVector &RHS) : Size(RHS.size()) {
if (Size == 0) {
- Bits = NULL;
+ Bits = 0;
Capacity = 0;
return;
}