summaryrefslogtreecommitdiff
path: root/include/llvm/IR/DerivedTypes.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-04-09 06:08:46 +0000
committerCraig Topper <craig.topper@gmail.com>2014-04-09 06:08:46 +0000
commitec0f0bc6afa8d2c1f427ec55264fc78738b83ef6 (patch)
tree9fd922368890f4c0e51831dc17d85d7f793a15c3 /include/llvm/IR/DerivedTypes.h
parent8a0d1c8f06391add493d0ff4b7344fce3420d2d5 (diff)
downloadllvm-ec0f0bc6afa8d2c1f427ec55264fc78738b83ef6.tar.gz
llvm-ec0f0bc6afa8d2c1f427ec55264fc78738b83ef6.tar.bz2
llvm-ec0f0bc6afa8d2c1f427ec55264fc78738b83ef6.tar.xz
[C++11] More 'nullptr' conversion or in some cases just using a boolean check instead of comparing to nullptr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205831 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/IR/DerivedTypes.h')
-rw-r--r--include/llvm/IR/DerivedTypes.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/IR/DerivedTypes.h b/include/llvm/IR/DerivedTypes.h
index 71d9973bcb..ff150872a4 100644
--- a/include/llvm/IR/DerivedTypes.h
+++ b/include/llvm/IR/DerivedTypes.h
@@ -188,7 +188,7 @@ class StructType : public CompositeType {
StructType(const StructType &) LLVM_DELETED_FUNCTION;
const StructType &operator=(const StructType &) LLVM_DELETED_FUNCTION;
StructType(LLVMContext &C)
- : CompositeType(C, StructTyID), SymbolTableEntry(0) {}
+ : CompositeType(C, StructTyID), SymbolTableEntry(nullptr) {}
enum {
/// This is the contents of the SubClassData field.
SCDB_HasBody = 1,
@@ -249,10 +249,10 @@ public:
bool isOpaque() const { return (getSubclassData() & SCDB_HasBody) == 0; }
/// isSized - Return true if this is a sized type.
- bool isSized(SmallPtrSet<const Type*, 4> *Visited = 0) const;
+ bool isSized(SmallPtrSet<const Type*, 4> *Visited = nullptr) const;
/// hasName - Return true if this is a named struct that has a non-empty name.
- bool hasName() const { return SymbolTableEntry != 0; }
+ bool hasName() const { return SymbolTableEntry != nullptr; }
/// getName - Return the name for this struct type if it has an identity.
/// This may return an empty string for an unnamed struct type. Do not call