projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9750d3
)
llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp: Fix build in -m32. 1L is incompatible...
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Sat, 9 Jan 2016 00:28:50 +0000
(
00:28
+0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Sat, 9 Jan 2016 00:28:50 +0000
(
00:28
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257237
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/DebugInfo/Symbolize/DIPrinter.cpp
patch
|
blob
|
history
diff --git
a/lib/DebugInfo/Symbolize/DIPrinter.cpp
b/lib/DebugInfo/Symbolize/DIPrinter.cpp
index 7d7ace0759e6d605048566b4b3b961125b4e2f0c..0d4eb5c167a68ab7a719bf1e0adb75286b10ed3f 100644
(file)
--- 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<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));