r177193 - Simplify print logic, per feedback from Jordan Rose.

Ted Kremenek kremenek at apple.com
Fri Mar 15 15:02:46 PDT 2013


Author: kremenek
Date: Fri Mar 15 17:02:46 2013
New Revision: 177193

URL: http://llvm.org/viewvc/llvm-project?rev=177193&view=rev
Log:
Simplify print logic, per feedback from Jordan Rose.

Modified:
    cfe/trunk/lib/Sema/SemaChecking.cpp

Modified: cfe/trunk/lib/Sema/SemaChecking.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaChecking.cpp?rev=177193&r1=177192&r2=177193&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaChecking.cpp (original)
+++ cfe/trunk/lib/Sema/SemaChecking.cpp Fri Mar 15 17:02:46 2013
@@ -4505,7 +4505,7 @@ static void DiagnoseOutOfRangeComparison
   SmallString<64> PrettySourceValue;
   llvm::raw_svector_ostream OS(PrettySourceValue);
   if (ED)
-    OS << '\'' << ED->getName() << "' (" << Value << ")";
+    OS << '\'' << *ED << "' (" << Value << ")";
   else
     OS << Value;
 





More information about the cfe-commits mailing list