diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2016-02-24 21:55:58 +0000 |
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2016-02-24 21:55:58 +0000 |
| commit | f4ea6039698a9d07cf88bc959e79a83b05de5a82 (patch) | |
| tree | 46c6d3ce2020700e495eae34880c3865255cc139 | |
| parent | ddd97faeecce050402ae5b068ee070132254f5f9 (diff) | |
| download | bcm5719-llvm-f4ea6039698a9d07cf88bc959e79a83b05de5a82.tar.gz bcm5719-llvm-f4ea6039698a9d07cf88bc959e79a83b05de5a82.zip | |
Don't convert a char to a const char *
This fixes PR26728.
llvm-svn: 261780
| -rw-r--r-- | clang/lib/Lex/PPDirectives.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp index 320c16dbec2..e8a68ad9ec0 100644 --- a/clang/lib/Lex/PPDirectives.cpp +++ b/clang/lib/Lex/PPDirectives.cpp @@ -1226,7 +1226,7 @@ void Preprocessor::HandleUserDiagnosticDirective(Token &Tok, // Find the first non-whitespace character, so that we can make the // diagnostic more succinct. - StringRef Msg = StringRef(Message).ltrim(' '); + StringRef Msg = StringRef(Message).ltrim(" "); if (isWarning) Diag(Tok, diag::pp_hash_warning) << Msg; |

