aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-03-26 01:34:51 +0000
committerTed Kremenek <kremenek@apple.com>2010-03-26 01:34:51 +0000
commit83c5184d3ae2ff94a993b3e770e96756193f15f0 (patch)
treea682d0e849bccd536def4ae5df82523b0820e6d5
parent50a2b426b3a4db544945273207f900c085b3edbd (diff)
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
-rw-r--r--tools/CIndex/CIndex.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/CIndex/CIndex.cpp b/tools/CIndex/CIndex.cpp
index 5a64caa342..998fbbba22 100644
--- a/tools/CIndex/CIndex.cpp
+++ b/tools/CIndex/CIndex.cpp
@@ -1078,9 +1078,8 @@ clang_createTranslationUnitFromSourceFile(CXIndex CIdx,
// 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();