Files
swift-mirror/test/multifile/require-layout-enum.swift
Slava Pestov 7a4e7eda00 IRGen: Don't get enum element argument type until we need it
Instead of adding a resolveDeclSignature() call here, I'm going to live
dangerously and try to only get the enum element type in the case where
SIL type lowering has already computed it, that is, if the enum is not
indirect.

Soon this will become moot anyway because getInterfaceType() will be a
request.
2019-07-17 18:07:03 -04:00

4 lines
164 B
Swift

// RUN: %target-swift-frontend -emit-ir -primary-file %s %S/Inputs/require-layout-enum-other.swift -module-name layout
public func returnE() -> E { return .blah }