Skip to content

Commit 63d6b15

Browse files
committed
Fix errors building swift/SIL on Windows with MSVC
https://connect.microsoft.com/VisualStudio/feedback/details/3117167
1 parent ac3b56a commit 63d6b15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/swift/SIL/SILArgumentConvention.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ enum class InoutAliasingAssumption {
3434
/// By design, this is exactly the same as ParameterConvention, plus
3535
/// Indirect_Out.
3636
struct SILArgumentConvention {
37-
enum : uint8_t {
37+
enum ConventionType : uint8_t {
3838
Indirect_In,
3939
Indirect_In_Guaranteed,
4040
Indirect_Inout,
@@ -79,7 +79,7 @@ struct SILArgumentConvention {
7979
llvm_unreachable("covered switch isn't covered?!");
8080
}
8181

82-
operator decltype(Value)() const { return Value; }
82+
operator ConventionType() const { return Value; }
8383

8484
bool isIndirectConvention() const {
8585
return Value <= SILArgumentConvention::Indirect_Out;

0 commit comments

Comments
 (0)