Broken codegen for recursive function in Xcode 6.1 GM seed 2

The compiler terminates early with a message apparently indicating broken codegen:

    Stored value type does not match pointer operand type!
      store %SQ.17* %5, %SQ** %45, align 8, !dbg !422
     %SQ*LLVM ERROR: Broken function found, compilation aborted!