[llvm] r257237 - llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp: Fix build in -m32. 1L is incompatible to int64_t.
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 8 16:28:50 PST 2016
Author: chapuni
Date: Fri Jan 8 18:28:50 2016
New Revision: 257237
URL: http://llvm.org/viewvc/llvm-project?rev=257237&view=rev
Log:
llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp: Fix build in -m32. 1L is incompatible to int64_t.
Modified:
llvm/trunk/lib/DebugInfo/Symbolize/DIPrinter.cpp
Modified: llvm/trunk/lib/DebugInfo/Symbolize/DIPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/Symbolize/DIPrinter.cpp?rev=257237&r1=257236&r2=257237&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/Symbolize/DIPrinter.cpp (original)
+++ llvm/trunk/lib/DebugInfo/Symbolize/DIPrinter.cpp Fri Jan 8 18:28:50 2016
@@ -36,7 +36,7 @@ void DIPrinter::printContext(std::string
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));
More information about the llvm-commits
mailing list