diff options
| author | Ted Kremenek <kremenek@apple.com> | 2010-03-26 01:34:51 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2010-03-26 01:34:51 +0000 |
| commit | 014e70b797069753ca42506eb23ba07ec9be0a97 (patch) | |
| tree | 3234c7dbdf20c7d36d8343761a43548ee70b1a89 /clang/tools/CIndex/CIndex.cpp | |
| parent | 5d4e917d9ffe396a5c58abb2a8e5302e43822f9c (diff) | |
| download | bcm5719-llvm-014e70b797069753ca42506eb23ba07ec9be0a97.tar.gz bcm5719-llvm-014e70b797069753ca42506eb23ba07ec9be0a97.zip | |
Return translation units from clang_createTranslationUnitFromSource()
if even they contain errors.
llvm-svn: 99594
Diffstat (limited to 'clang/tools/CIndex/CIndex.cpp')
| -rw-r--r-- | clang/tools/CIndex/CIndex.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/tools/CIndex/CIndex.cpp b/clang/tools/CIndex/CIndex.cpp index 5a64caa342d..998fbbba22b 100644 --- a/clang/tools/CIndex/CIndex.cpp +++ b/clang/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(); |

