r261784 - Revert "Don't convert a char to a const char *"
David Majnemer via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 24 14:07:26 PST 2016
Date: Wed Feb 24 16:07:26 2016
New Revision: 261784
Revert "Don't convert a char to a const char *"
This reverts commit r261780. It turns out the original code was just
fine. An overload for ltrim which takes char was added but the Doxygen
docs haven't seemed to pick it up.
--- cfe/trunk/lib/Lex/PPDirectives.cpp (original)
+++ cfe/trunk/lib/Lex/PPDirectives.cpp Wed Feb 24 16:07:26 2016
@@ -1226,7 +1226,7 @@ void Preprocessor::HandleUserDiagnosticD
// 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(' ');
Diag(Tok, diag::pp_hash_warning) << Msg;
More information about the cfe-commits