Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ struct CdeclLowering {
)
}

for effect in signature.effectSpecifiers {
// Prohibit any effects for now.
throw LoweringError.effectNotSupported(effect)
}

// Lower the result.
let loweredResult = try lowerResult(signature.result.type)

Expand Down Expand Up @@ -642,4 +647,5 @@ extension LoweredFunctionSignature {
enum LoweringError: Error {
case inoutNotSupported(SwiftType)
case unhandledType(SwiftType)
case effectNotSupported(SwiftEffectSpecifier)
}