summaryrefslogtreecommitdiffstats
path: root/clang/tools/CIndex/CIndex.cpp
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
commit014e70b797069753ca42506eb23ba07ec9be0a97 (patch)
tree3234c7dbdf20c7d36d8343761a43548ee70b1a89 /clang/tools/CIndex/CIndex.cpp
parent5d4e917d9ffe396a5c58abb2a8e5302e43822f9c (diff)
downloadbcm5719-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.cpp3
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();
OpenPOWER on IntegriCloud