ruiu added inline comments. ================ Comment at: lib/ObjectYAML/ObjectYAML.cpp:38 + if (!((Input &)IO).getCurrentNode()) + return; + ---------------- I think this is not correct. You need to set an error because this is an error condition. https://reviews.llvm.org/D38036