[cfe-commits] r152030 - /cfe/trunk/lib/Rewrite/RewriteMacros.cpp
Nico Weber
nicolasweber at gmx.de
Mon Mar 5 07:48:35 PST 2012
Author: nico
Date: Mon Mar 5 09:48:34 2012
New Revision: 152030
URL: http://llvm.org/viewvc/llvm-project?rev=152030&view=rev
Log:
Fix a -Wstring-plus-int warning.
Patch from Sean Silva <silvas at purdue.edu>!
Modified:
cfe/trunk/lib/Rewrite/RewriteMacros.cpp
Modified: cfe/trunk/lib/Rewrite/RewriteMacros.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/RewriteMacros.cpp?rev=152030&r1=152029&r2=152030&view=diff
==============================================================================
--- cfe/trunk/lib/Rewrite/RewriteMacros.cpp (original)
+++ cfe/trunk/lib/Rewrite/RewriteMacros.cpp Mon Mar 5 09:48:34 2012
@@ -167,7 +167,7 @@
// Comment out a whole run of tokens instead of bracketing each one with
// comments. Add a leading space if RawTok didn't have one.
bool HasSpace = RawTok.hasLeadingSpace();
- RB.InsertTextAfter(RawOffs, " /*"+HasSpace);
+ RB.InsertTextAfter(RawOffs, &" /*"[HasSpace]);
unsigned EndPos;
do {
More information about the cfe-commits
mailing list