joker.eph added a comment. I still hit an assert with this patch: Assertion failed: (I != Map.end() && "Missing identifier in type map"), function resolve, file include/llvm/IR/DebugInfoMetadata.h, line 89. Investigating... http://reviews.llvm.org/D16440