Skip to content

Instantly share code, notes, and snippets.

@stevej
Created September 19, 2014 17:36
Show Gist options
  • Save stevej/2b5a54a1d357012574ec to your computer and use it in GitHub Desktop.
Save stevej/2b5a54a1d357012574ec to your computer and use it in GitHub Desktop.
/Users/stevej/src/CutieBaby/CutieBaby/GameScene.swift:12:6: error: unimplemented IR generation feature non-fixed multi-payload enum layout
enum Tree<T>:TreeLike {
^
0 swift 0x0000000101e6f028 llvm::sys::PrintStackTrace(__sFILE*) + 40
1 swift 0x0000000101e6f514 SignalHandler(int) + 452
2 libsystem_platform.dylib 0x00007fff89c395aa _sigtramp + 26
3 libsystem_platform.dylib 000000000000000000 _sigtramp + 1983670896
4 swift 0x0000000101ce7290 llvm::ConstantFoldGetElementPtr(llvm::Constant*, bool, llvm::ArrayRef<llvm::Value*>) + 112
5 swift 0x0000000101cef6f3 llvm::ConstantExpr::getGetElementPtr(llvm::Constant*, llvm::ArrayRef<llvm::Value*>, bool) + 51
6 swift 0x0000000101252c0b llvm::IRBuilder<true, llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true> >::CreateConstInBoundsGEP2_32(llvm::Value*, unsigned int, unsigned int, llvm::Twine const&) + 123
7 swift 0x00000001012a6e7e swift::irgen::ElementLayout::project(swift::irgen::IRGenFunction&, swift::irgen::Address, swift::Optional<swift::irgen::NonFixedOffsetsImpl*>, llvm::Twine const&) const + 654
8 swift 0x0000000101272ad3 swift::irgen::projectTupleElementAddress(swift::irgen::IRGenFunction&, swift::irgen::Address, swift::SILType, unsigned int) + 147
9 swift 0x000000010129ab8a swift::SILVisitor<(anonymous namespace)::IRGenSILFunction, void>::visit(swift::ValueBase*) + 27402
10 swift 0x000000010129384b swift::irgen::IRGenModule::emitSILFunction(swift::SILFunction*) + 10267
11 swift 0x000000010120d288 swift::irgen::IRGenModule::emitGlobalTopLevel() + 200
12 swift 0x000000010128048c performIRGeneration(swift::IRGenOptions&, swift::Module*, swift::SILModule*, llvm::StringRef, llvm::LLVMContext&, swift::SourceFile*, unsigned int) + 1900
13 swift 0x0000000101280e83 swift::performIRGeneration(swift::IRGenOptions&, swift::SourceFile&, swift::SILModule*, llvm::StringRef, llvm::LLVMContext&, unsigned int) + 51
14 swift 0x00000001011e554c frontend_main(llvm::ArrayRef<char const*>, char const*, void*) + 5308
15 swift 0x00000001011e294d main + 1677
16 libdyld.dylib 0x00007fff8df405fd start + 1
protocol TreeLike {}
enum Tree<T>:TreeLike {
case Empty
case Leaf(T)
case Node(TreeLike, TreeLike)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment