ibronstein added inline comments. ================ Comment at: lib/Frontend/ASTUnit.cpp:2068 + if (!AllowRebuild && !OverrideMainBuffer) + return false; + } ---------------- Can we leave ASTUnit in such state? https://reviews.llvm.org/D31544