Simplify print logic, per feedback from Jordan Rose.

llvm-svn: 177193
This commit is contained in:
Ted Kremenek 2013-03-15 22:02:46 +00:00
parent f99f0b8cf7
commit e943ce1ace
1 changed files with 1 additions and 1 deletions

View File

@ -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;