From 1e69efeb0a2ba3eaa6cc678adfb2fccdb29635de Mon Sep 17 00:00:00 2001 From: Daniel Sanders Date: Wed, 18 Dec 2019 14:14:06 +0000 Subject: [PATCH] [globalisel] Attempt to fix ARM bots that emit the correct number in the wrong place --- utils/TableGen/GICombinerEmitter.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/utils/TableGen/GICombinerEmitter.cpp b/utils/TableGen/GICombinerEmitter.cpp index c83936f2ba4..0e64b22a556 100644 --- a/utils/TableGen/GICombinerEmitter.cpp +++ b/utils/TableGen/GICombinerEmitter.cpp @@ -24,6 +24,7 @@ #include "GlobalISel/CodeExpander.h" #include "GlobalISel/CodeExpansions.h" #include "GlobalISel/GIMatchDag.h" +#include using namespace llvm; @@ -289,8 +290,8 @@ static const DagInit *getDagWithOperatorOfSubClass(const Init &N, } StringRef makeNameForAnonInstr(CombineRule &Rule) { - return insertStrTab( - to_string(format("__anon%d_%d", Rule.getID(), Rule.allocUID()))); + return insertStrTab(to_string( + format("__anon%" PRIu64 "_%" PRIu64, Rule.getID(), Rule.allocUID()))); } StringRef makeDebugName(CombineRule &Rule, StringRef Name) { @@ -298,8 +299,8 @@ StringRef makeDebugName(CombineRule &Rule, StringRef Name) { } StringRef makeNameForAnonPredicate(CombineRule &Rule) { - return insertStrTab( - to_string(format("__anonpred%d_%d", Rule.getID(), Rule.allocUID()))); + return insertStrTab(to_string( + format("__anonpred%" PRIu64 "_%" PRIu64, Rule.getID(), Rule.allocUID()))); } void CombineRule::declareMatchData(StringRef PatternSymbol, StringRef Type,