[clang] Fix 39f4bd214f1be248283fb7e35bc2610c19169252 on win builders
authorTimm Bäder <tbaeder@redhat.com>
Wed, 31 May 2023 07:13:19 +0000 (09:13 +0200)
committerTimm Bäder <tbaeder@redhat.com>
Wed, 31 May 2023 07:13:48 +0000 (09:13 +0200)
clang/lib/AST/Interp/Disasm.cpp

index f4a6cb8..35ed5d1 100644 (file)
@@ -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();) {