From: Chris Lattner Date: Sun, 3 May 2009 08:42:09 +0000 (+0000) Subject: temporary hack to work around PR4128 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cb6929bf439bbb5bc4604ac18893c790be63f95f;p=clang temporary hack to work around PR4128 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70681 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/TextDiagnosticPrinter.cpp b/lib/Frontend/TextDiagnosticPrinter.cpp index a2cf8f958c..042e894feb 100644 --- a/lib/Frontend/TextDiagnosticPrinter.cpp +++ b/lib/Frontend/TextDiagnosticPrinter.cpp @@ -251,7 +251,7 @@ static void SelectInterestingSourceRegion(std::string &SourceLine, // before the lines so that it looks nicer. if (CaretEnd < SourceLine.size()) SourceLine.replace(CaretEnd, std::string::npos, "..."); - CaretLine.erase(CaretEnd, std::string::npos); + //CaretLine.erase(CaretEnd, std::string::npos); if (FixItInsertionLine.size() > CaretEnd) FixItInsertionLine.erase(CaretEnd, std::string::npos);