summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-06-06 01:47:30 +0000
committerTed Kremenek <kremenek@apple.com>2008-06-06 01:47:30 +0000
commit3ad519441fa2383349e3aefd4f9f72a231aaa866 (patch)
treead2e767b3670cd865184f46fedcc0d91486dedc1
parent4eed3afda0a4b80049f9767979dfd92594cd911d (diff)
downloadbcm5719-llvm-3ad519441fa2383349e3aefd4f9f72a231aaa866.tar.gz
bcm5719-llvm-3ad519441fa2383349e3aefd4f9f72a231aaa866.zip
Fix crash when running with multiple source files. This can be improved.
llvm-svn: 52032
-rw-r--r--clang/Driver/clang.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp
index df41e54b32d..5eec67ca879 100644
--- a/clang/Driver/clang.cpp
+++ b/clang/Driver/clang.cpp
@@ -1480,6 +1480,12 @@ int main(int argc, char **argv) {
// Process the -I options and set them in the HeaderInfo.
HeaderSearch HeaderInfo(FileMgr);
if (TextDiagClient) TextDiagClient->setHeaderSearch(HeaderInfo);
+
+ // FIXME: Sink IncludeGroup into this loop.
+ IncludeGroup[0].clear();
+ IncludeGroup[1].clear();
+ IncludeGroup[2].clear();
+ IncludeGroup[3].clear();
InitializeIncludePaths(argv[0], HeaderInfo, FileMgr, LangInfo);
// Set up the preprocessor with these options.
OpenPOWER on IntegriCloud