]> granicus.if.org Git - clang/commitdiff
Don't convert a char to a const char *
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 24 Feb 2016 21:55:58 +0000 (21:55 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 24 Feb 2016 21:55:58 +0000 (21:55 +0000)
This fixes PR26728.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261780 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/PPDirectives.cpp

index 320c16dbec2568250ffd95634fdd91584e5b311a..e8a68ad9ec0212efb67704a3ead95198ba8cb7ac 100644 (file)
@@ -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;