File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -647,7 +647,8 @@ namespace llvm {
647
647
template <> struct DenseMapInfo <swift::CanType>
648
648
: public DenseMapInfo<swift::Type> {
649
649
static swift::CanType getEmptyKey () {
650
- return swift::CanType (nullptr );
650
+ return swift::CanType (llvm::DenseMapInfo<swift::
651
+ TypeBase*>::getEmptyKey ());
651
652
}
652
653
static swift::CanType getTombstoneKey () {
653
654
return swift::CanType (llvm::DenseMapInfo<swift::
Original file line number Diff line number Diff line change @@ -5281,6 +5281,7 @@ inline CanType CanType::getNominalParent() const {
5281
5281
5282
5282
inline bool CanType::isActuallyCanonicalOrNull () const {
5283
5283
return getPointer () == nullptr ||
5284
+ getPointer () == llvm::DenseMapInfo<TypeBase *>::getEmptyKey () ||
5284
5285
getPointer () == llvm::DenseMapInfo<TypeBase *>::getTombstoneKey () ||
5285
5286
getPointer ()->isCanonical ();
5286
5287
}
You can’t perform that action at this time.
0 commit comments