When building code referencing unwind lib, the compiler may not specify a unwind lib (in this case clang + compiler-rt).
Also HandleLLVMOptions.cmake uses -z,defs to prevent undef. In this case, the compilation would fail. (https://bugs.llvm.org/show_bug.cgi?id=28681)
There is also a similar patch for compiler-rt (for in-LLVM-tree build, standalone build does not enforce -z,defs ), which will be submitted in a separate patch in compiler-rt tree.