diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-06-06 01:47:30 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-06-06 01:47:30 +0000 |
commit | c68ecb5724b383ac4c3945311c68cd7f2621a344 (patch) | |
tree | 8e7a29cab3fbadb0ec76337a78e85759ef645442 | |
parent | c9a9200de60042a6142f0e37fa6d8f86fd1000f6 (diff) |
Fix crash when running with multiple source files. This can be improved.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52032 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | Driver/clang.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp index df41e54b32..5eec67ca87 100644 --- a/Driver/clang.cpp +++ b/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. |