[cfe-commits] r52032 - /cfe/trunk/Driver/clang.cpp
Ted Kremenek
kremenek at apple.com
Thu Jun 5 18:47:31 PDT 2008
Author: kremenek
Date: Thu Jun 5 20:47:30 2008
New Revision: 52032
URL: http://llvm.org/viewvc/llvm-project?rev=52032&view=rev
Log:
Fix crash when running with multiple source files. This can be improved.
Modified:
cfe/trunk/Driver/clang.cpp
Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=52032&r1=52031&r2=52032&view=diff
==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Thu Jun 5 20:47:30 2008
@@ -1480,6 +1480,12 @@
// 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.
More information about the cfe-commits
mailing list