Skip to content

Commit c009b0f

Browse files
committed
---
yaml --- r: 346974 b: refs/heads/master c: face8c3 h: refs/heads/master
1 parent 3525c01 commit c009b0f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: ef63ab8076375ec50002a262463f44f104a35f74
2+
refs/heads/master: face8c35c947f83735e61dd256968d686aa7fbd6
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/include/swift/ABI/Metadata.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1645,7 +1645,11 @@ class TargetProtocolDescriptorRef {
16451645
assert(!isObjC());
16461646
#endif
16471647

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);
16491653
}
16501654

16511655
/// Retrieve the raw stored pointer and discriminator bit.

0 commit comments

Comments
 (0)