diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/DIBuilder.h | 6 | ||||
-rw-r--r-- | include/llvm/DebugInfo.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/DIBuilder.h b/include/llvm/DIBuilder.h index 420dcef651..bac16795f3 100644 --- a/include/llvm/DIBuilder.h +++ b/include/llvm/DIBuilder.h @@ -289,7 +289,7 @@ namespace llvm { uint64_t SizeInBits, uint64_t AlignInBits, uint64_t OffsetInBits, unsigned Flags, DIType DerivedFrom, DIArray Elements, - DIType VTableHolder = NULL, + DIType VTableHolder = DIType(), MDNode *TemplateParms = 0, StringRef UniqueIdentifier = StringRef()); @@ -309,7 +309,7 @@ namespace llvm { uint64_t SizeInBits, uint64_t AlignInBits, unsigned Flags, DIType DerivedFrom, DIArray Elements, unsigned RunTimeLang = 0, - DIType VTableHolder = NULL, + DIType VTableHolder = DIType(), StringRef UniqueIdentifier = StringRef()); /// createUnionType - Create debugging information entry for an union. @@ -601,7 +601,7 @@ namespace llvm { DICompositeType Ty, bool isLocalToUnit, bool isDefinition, unsigned Virtuality = 0, unsigned VTableIndex = 0, - DIType VTableHolder = NULL, + DIType VTableHolder = DIType(), unsigned Flags = 0, bool isOptimized = false, Function *Fn = 0, diff --git a/include/llvm/DebugInfo.h b/include/llvm/DebugInfo.h index 12cd40fcce..07bd832bde 100644 --- a/include/llvm/DebugInfo.h +++ b/include/llvm/DebugInfo.h @@ -281,7 +281,7 @@ protected: void printInternal(raw_ostream &OS) const; public: - DIType(const MDNode *N = 0) : DIScope(N) {} + explicit DIType(const MDNode *N = 0) : DIScope(N) {} /// Verify - Verify that a type descriptor is well formed. bool Verify() const; |