commit | 014e70b797069753ca42506eb23ba07ec9be0a97 | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Fri Mar 26 01:34:51 2010 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Fri Mar 26 01:34:51 2010 +0000 |
tree | 3234c7dbdf20c7d36d8343761a43548ee70b1a89 | |
parent | 5d4e917d9ffe396a5c58abb2a8e5302e43822f9c [diff] [blame] |
Return translation units from clang_createTranslationUnitFromSource() if even they contain errors. llvm-svn: 99594
diff --git a/clang/tools/CIndex/CIndex.cpp b/clang/tools/CIndex/CIndex.cpp index 5a64caa..998fbbb 100644 --- a/clang/tools/CIndex/CIndex.cpp +++ b/clang/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();