No intended behavior change.
kcc, if samsonov no longer does llvm reviews, who can review this?
Yes, seems to be missing a not operator. I find std::error_code confusing.
Looks like this code has been removed in https://reviews.llvm.org/D57609, but I'm not sure the removal is correct (added a comment in that thread).
Made obsolete by D57609