projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Clang-tidy modernize-use-nullptr warnings in examples and include directories...
[oota-llvm.git]
/
include
/
llvm
/
IR
/
Metadata.h
diff --git
a/include/llvm/IR/Metadata.h
b/include/llvm/IR/Metadata.h
index 2f0713c47303bdd6aeccae657108e3dc3df92384..94b24f4e288e05c059558a55b7bf1ea7c1a046c1 100644
(file)
--- a/
include/llvm/IR/Metadata.h
+++ b/
include/llvm/IR/Metadata.h
@@
-573,10
+573,12
@@
struct AAMDNodes {
template<>
struct DenseMapInfo<AAMDNodes> {
static inline AAMDNodes getEmptyKey() {
template<>
struct DenseMapInfo<AAMDNodes> {
static inline AAMDNodes getEmptyKey() {
- return AAMDNodes(DenseMapInfo<MDNode *>::getEmptyKey(), 0, 0);
+ return AAMDNodes(DenseMapInfo<MDNode *>::getEmptyKey(),
+ nullptr, nullptr);
}
static inline AAMDNodes getTombstoneKey() {
}
static inline AAMDNodes getTombstoneKey() {
- return AAMDNodes(DenseMapInfo<MDNode *>::getTombstoneKey(), 0, 0);
+ return AAMDNodes(DenseMapInfo<MDNode *>::getTombstoneKey(),
+ nullptr, nullptr);
}
static unsigned getHashValue(const AAMDNodes &Val) {
return DenseMapInfo<MDNode *>::getHashValue(Val.TBAA) ^
}
static unsigned getHashValue(const AAMDNodes &Val) {
return DenseMapInfo<MDNode *>::getHashValue(Val.TBAA) ^
@@
-1219,4
+1221,4
@@
public:
} // end llvm namespace
} // end llvm namespace
-#endif
+#endif
// LLVM_IR_METADATA_H