forked from OSchip/llvm-project
parent
d83889bd87
commit
00da2b1546
|
@ -1167,8 +1167,6 @@ clang_createTranslationUnitFromSourceFile(CXIndex CIdx,
|
|||
RemappedFiles.size(),
|
||||
/*CaptureDiagnostics=*/true));
|
||||
|
||||
// FIXME: Until we have broader testing, just drop the entire AST if we
|
||||
// encountered an error.
|
||||
if (NumErrors != Diags->getNumErrors()) {
|
||||
// Make sure to check that 'Unit' is non-NULL.
|
||||
if (CXXIdx->getDisplayDiagnostics() && Unit.get()) {
|
||||
|
|
Loading…
Reference in New Issue