I thought about how hard it would be to just fix the CMake build and ended up just doing that instead. That drops this down to only being an issue for people actively working on ASTReader, as you said originally, at which point the normal backtrace is probably enough of a hint. Abandoning. http://reviews.llvm.org/D6138