From 9de50947ba381561a5236b3c878c83e4bb8c1088 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 15 Mar 2013 22:02:46 +0000 Subject: [PATCH] Simplify print logic, per feedback from Jordan Rose. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177193 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaChecking.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp index b566488594..cfce85eef0 100644 --- a/lib/Sema/SemaChecking.cpp +++ b/lib/Sema/SemaChecking.cpp @@ -4505,7 +4505,7 @@ static void DiagnoseOutOfRangeComparison(Sema &S, BinaryOperator *E, SmallString<64> PrettySourceValue; llvm::raw_svector_ostream OS(PrettySourceValue); if (ED) - OS << '\'' << ED->getName() << "' (" << Value << ")"; + OS << '\'' << *ED << "' (" << Value << ")"; else OS << Value; -- 2.40.0