diff options
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r-- | lib/Driver/Driver.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index ec6a07a54b..84321139ff 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -397,8 +397,9 @@ void Driver::generateCompilationDiagnostics(Compilation &C, if (types::getPreprocessedType(it->first) == types::TY_INVALID) { it = Inputs.erase(it); ie = Inputs.end(); - } else + } else { ++it; + } } if (Inputs.empty()) { Diag(clang::diag::note_drv_command_failed_diag_msg) |