forked from OSchip/llvm-project
Simplify print logic, per feedback from Jordan Rose.
llvm-svn: 177193
This commit is contained in:
parent
f99f0b8cf7
commit
e943ce1ace
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue