File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -550,7 +550,11 @@ class PropertyDelegateBackingPropertyInfoRequest :
550
550
// Allow AnyValue to compare two Type values, even though Type doesn't
551
551
// support ==.
552
552
template <>
553
- bool AnyValue::Holder<Type>::equals(const HolderBase &other) const ;
553
+ inline bool AnyValue::Holder<Type>::equals(const HolderBase &other) const {
554
+ assert (typeID == other.typeID && " Caller should match type IDs" );
555
+ return value.getPointer () ==
556
+ static_cast <const Holder<Type> &>(other).value .getPointer ();
557
+ }
554
558
555
559
void simple_display (llvm::raw_ostream &out, const Type &type);
556
560
Original file line number Diff line number Diff line change @@ -646,14 +646,6 @@ void swift::simple_display(
646
646
out << " }" ;
647
647
}
648
648
649
-
650
- template <>
651
- bool swift::AnyValue::Holder<Type>::equals(const HolderBase &other) const {
652
- assert (typeID == other.typeID && " Caller should match type IDs" );
653
- return value.getPointer () ==
654
- static_cast <const Holder<Type> &>(other).value .getPointer ();
655
- }
656
-
657
649
void swift::simple_display (llvm::raw_ostream &out, const Type &type) {
658
650
if (type)
659
651
type.print (out);
You can’t perform that action at this time.
0 commit comments