aboutsummaryrefslogtreecommitdiff
path: root/Driver/PrintPreprocessedOutput.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Driver/PrintPreprocessedOutput.cpp')
-rw-r--r--Driver/PrintPreprocessedOutput.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Driver/PrintPreprocessedOutput.cpp b/Driver/PrintPreprocessedOutput.cpp
index a8bc4e40d2..3eb11b719c 100644
--- a/Driver/PrintPreprocessedOutput.cpp
+++ b/Driver/PrintPreprocessedOutput.cpp
@@ -250,8 +250,10 @@ void PrintPPOutputPPCallbacks::FileChanged(SourceLocation Loc,
OutputChar('#');
OutputChar(' ');
- std::string Num = llvm::utostr_32(CurLine);
- OutputString(&Num[0], Num.size());
+
+ char NumberBuffer[20];
+ const char *NumStr = UToStr(CurLine, NumberBuffer+20);
+ OutputString(NumStr, (NumberBuffer+20)-NumStr-1);
OutputChar(' ');
OutputChar('"');
OutputString(&CurFilename[0], CurFilename.size());