evgeny777 added a comment. I see. I'm not sure about the motivation behind those flag/type checks. @grimar has just found out that they prevent linux kernel from linking .... Repository: rL LLVM https://reviews.llvm.org/D29278