File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: ef63ab8076375ec50002a262463f44f104a35f74
2
+ refs/heads/master: face8c35c947f83735e61dd256968d686aa7fbd6
3
3
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
Original file line number Diff line number Diff line change @@ -1645,7 +1645,11 @@ class TargetProtocolDescriptorRef {
1645
1645
assert (!isObjC ());
1646
1646
#endif
1647
1647
1648
- return reinterpret_cast <ProtocolDescriptorPointer>(storage & ~IsObjCBit);
1648
+ // NOTE: we explicitly use a C-style cast here because cl objects to the
1649
+ // reinterpret_cast from a uintptr_t type to an unsigned type which the
1650
+ // Pointer type may be depending on the instantiation. Using the C-style
1651
+ // cast gives us a single path irrespective of the template type parameters.
1652
+ return (ProtocolDescriptorPointer)(storage & ~IsObjCBit);
1649
1653
}
1650
1654
1651
1655
// / Retrieve the raw stored pointer and discriminator bit.
You can’t perform that action at this time.
0 commit comments