projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddff70c
)
[clang] Fix 39f4bd214f1be248283fb7e35bc2610c19169252 on win builders
author
Timm Bäder
<tbaeder@redhat.com>
Wed, 31 May 2023 07:13:19 +0000
(09:13 +0200)
committer
Timm Bäder
<tbaeder@redhat.com>
Wed, 31 May 2023 07:13:48 +0000
(09:13 +0200)
clang/lib/AST/Interp/Disasm.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/AST/Interp/Disasm.cpp
b/clang/lib/AST/Interp/Disasm.cpp
index
f4a6cb8
..
35ed5d1
100644
(file)
--- a/
clang/lib/AST/Interp/Disasm.cpp
+++ b/
clang/lib/AST/Interp/Disasm.cpp
@@
-42,7
+42,9
@@
LLVM_DUMP_METHOD void Function::dump(llvm::raw_ostream &OS) const {
auto PrintName = [&OS](const char *Name) {
OS << Name;
- OS.indent(std::max(30l - strlen(Name), 0ul));
+ long N = 30 - strlen(Name);
+ if (N > 0)
+ OS.indent(N);
};
for (CodePtr Start = getCodeBegin(), PC = Start; PC != getCodeEnd();) {