mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp: Fix build in -m32. 1L is incompatible to int64_t.
llvm-svn: 257237
This commit is contained in:
parent
d03c218611
commit
8100f735c4
@ -36,7 +36,7 @@ void DIPrinter::printContext(std::string FileName, int64_t Line) {
|
||||
return;
|
||||
|
||||
std::unique_ptr<MemoryBuffer> Buf = std::move(BufOrErr.get());
|
||||
int64_t FirstLine = std::max(1l, Line - PrintSourceContext / 2);
|
||||
int64_t FirstLine = std::max((int64_t)1, Line - PrintSourceContext / 2);
|
||||
int64_t LastLine = FirstLine + PrintSourceContext;
|
||||
size_t MaxLineNumberWidth = std::ceil(std::log10(LastLine));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user