axw planned changes to this revision. axw added a comment. I've just come back to this and found that it's broken. Unsure of what's changed in the interim, but I get "panic: panic during panic" caused by type descriptor comparisons. Will come back to this when I have time. http://reviews.llvm.org/D15188