forked from OSchip/llvm-project
TextDiagnostic.cpp: Suppress a warning to use ptrdiff_t on i686-clang. [-Wsign-compare]
llvm-svn: 174353
This commit is contained in:
parent
411e674557
commit
0120178909
|
@ -1098,7 +1098,7 @@ void TextDiagnostic::emitSnippetAndCaret(
|
|||
unsigned ColNo = SM.getColumnNumber(FID, FileOffset);
|
||||
|
||||
// Arbitrarily stop showing snippets when the line is too long.
|
||||
static const unsigned MaxLineLengthToPrint = 4096;
|
||||
static const ptrdiff_t MaxLineLengthToPrint = 4096;
|
||||
if (ColNo > MaxLineLengthToPrint)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue