Skip to content

Commit 0a08139

Browse files
committed
[globalisel] Attempt to fix ARM bots that emit the correct number in the wrong place
1 parent d129aa1 commit 0a08139

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

llvm/utils/TableGen/GICombinerEmitter.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "GlobalISel/CodeExpander.h"
2525
#include "GlobalISel/CodeExpansions.h"
2626
#include "GlobalISel/GIMatchDag.h"
27+
#include <cstdint>
2728

2829
using namespace llvm;
2930

@@ -289,17 +290,17 @@ static const DagInit *getDagWithOperatorOfSubClass(const Init &N,
289290
}
290291

291292
StringRef makeNameForAnonInstr(CombineRule &Rule) {
292-
return insertStrTab(
293-
to_string(format("__anon%d_%d", Rule.getID(), Rule.allocUID())));
293+
return insertStrTab(to_string(
294+
format("__anon%" PRIu64 "_%" PRIu64, Rule.getID(), Rule.allocUID())));
294295
}
295296

296297
StringRef makeDebugName(CombineRule &Rule, StringRef Name) {
297298
return insertStrTab(Name.empty() ? makeNameForAnonInstr(Rule) : StringRef(Name));
298299
}
299300

300301
StringRef makeNameForAnonPredicate(CombineRule &Rule) {
301-
return insertStrTab(
302-
to_string(format("__anonpred%d_%d", Rule.getID(), Rule.allocUID())));
302+
return insertStrTab(to_string(
303+
format("__anonpred%" PRIu64 "_%" PRIu64, Rule.getID(), Rule.allocUID())));
303304
}
304305

305306
void CombineRule::declareMatchData(StringRef PatternSymbol, StringRef Type,

0 commit comments

Comments
 (0)