Skip to content

Commit 4a8ee40

Browse files
committed
[no-implicit-copy] Make SILType::getRawASTType() public for now.
I keep on needing to use this in various internal APIs to the compiler that I don't want to have to make a public forward declared internal API.
1 parent f47a519 commit 4a8ee40

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/swift/SIL/SILType.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ class SILParser;
9393
/// In addition to the Swift type system, SIL adds "address" types that can
9494
/// reference any Swift type (but cannot take the address of an address). *T
9595
/// is the type of an address pointing at T.
96-
///
9796
class SILType {
9897
public:
9998
/// The unsigned is a SILValueCategory.
10099
using ValueType = llvm::PointerIntPair<TypeBase *, 2, unsigned>;
100+
101101
private:
102102
ValueType value;
103103

@@ -194,7 +194,6 @@ class SILType {
194194
return removingMoveOnlyWrapper().getRawASTType();
195195
}
196196

197-
private:
198197
/// Returns the canonical AST type references by this SIL type without looking
199198
/// through move only. Should only be used by internal utilities of SILType.
200199
CanType getRawASTType() const { return CanType(value.getPointer()); }

0 commit comments

Comments
 (0)