Swift: LLVM internal error when trying to serialize Swift array with NSCoding
| Originator: | d2.lebedev | ||
| Number: | rdar://17284746 | Date Originated: | 12.06.2014 |
| Status: | Open | Resolved: | |
| Product: | Xcode | Product Version: | 6.0 (6A215l) |
| Classification: | Serious issue | Reproducible: | Always |
Summary: NSCoder.encodeObject(:forKey) does not accept objects of Array type and fails at compile time with non-descriptive error Steps to Reproduce: 1. Create swift class with property of Array type and conform it to NSCoding (see attachment) 2. Compile Expected Results: No compilation errors Actual Results: Bitcast requires both operands to be pointer or neither %199 = bitcast i32 %198 to %objc_object*, !dbg !223 LLVM ERROR: Broken function found, compilation aborted! Command /Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift failed with exit code 1
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!