]> granicus.if.org Git - clang/commitdiff
temporary hack to work around PR4128
authorChris Lattner <sabre@nondot.org>
Sun, 3 May 2009 08:42:09 +0000 (08:42 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 3 May 2009 08:42:09 +0000 (08:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70681 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/TextDiagnosticPrinter.cpp

index a2cf8f958c2975191685d0df06e32485a17d4b8d..042e894febcfb63feec76a0552b0639d28c40254 100644 (file)
@@ -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);