From bac757414bebf44363dd39a7ca4b1c4b63f19cd6 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sat, 9 Jan 2016 00:28:50 +0000 Subject: [PATCH] llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp: Fix build in -m32. 1L is incompatible to int64_t. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257237 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/DebugInfo/Symbolize/DIPrinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DebugInfo/Symbolize/DIPrinter.cpp b/lib/DebugInfo/Symbolize/DIPrinter.cpp index 7d7ace0759e..0d4eb5c167a 100644 --- a/lib/DebugInfo/Symbolize/DIPrinter.cpp +++ b/lib/DebugInfo/Symbolize/DIPrinter.cpp @@ -36,7 +36,7 @@ void DIPrinter::printContext(std::string FileName, int64_t Line) { return; std::unique_ptr 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)); -- 2.34.1