forked from OSchip/llvm-project
fix 7320: we can't delete a trailing space if it doesn't exist.
llvm-svn: 113125
This commit is contained in:
parent
8ed2bac65d
commit
f0b0497343
|
@ -384,7 +384,9 @@ void Preprocessor::HandlePragmaDependency(Token &DependencyTok) {
|
|||
Lex(DependencyTok);
|
||||
}
|
||||
|
||||
Message.erase(Message.end()-1);
|
||||
// Remove the trailing ' ' if present.
|
||||
if (!Message.empty())
|
||||
Message.erase(Message.end()-1);
|
||||
Diag(FilenameTok, diag::pp_out_of_date_dependency) << Message;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue