Return translation units from clang_createTranslationUnitFromSource()
if even they contain errors.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99594 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/CIndex/CIndex.cpp b/tools/CIndex/CIndex.cpp
index 5a64caa..998fbbb 100644
--- a/tools/CIndex/CIndex.cpp
+++ b/tools/CIndex/CIndex.cpp
@@ -1078,9 +1078,8 @@
// stderr and stdout in the file system, all with different buffers
// but writing to the same device.
fflush(stderr);
-#endif
+#endif
}
- return 0;
}
return Unit.take();