aboutsummaryrefslogtreecommitdiff
path: root/llvm
diff options
context:
space:
mode:
authorDaniel Sanders <daniel_l_sanders@apple.com>2019-12-18 14:56:23 +0000
committerDaniel Sanders <daniel_l_sanders@apple.com>2019-12-18 14:56:23 +0000
commit3a779b7dfd8ee2924997dbed7f6c43d7989895f6 (patch)
tree8309d4ee15e9b033a590b001ab9fa5fa225bc6c5 /llvm
parente14ff22694c28b5e731502bfc30192b3208d4d8d (diff)
downloadllvm-3a779b7dfd8ee2924997dbed7f6c43d7989895f6.zip
llvm-3a779b7dfd8ee2924997dbed7f6c43d7989895f6.tar.gz
llvm-3a779b7dfd8ee2924997dbed7f6c43d7989895f6.tar.bz2
[globalisel] Small correction to the fixup in 0a0813962d6. The two ID's are not the same size
The rule ID is a uint64_t as it has global scope but the UID is scoped to the rule and expected to be much smaller so it's only unsigned.
Diffstat (limited to 'llvm')
-rw-r--r--llvm/utils/TableGen/GICombinerEmitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/GICombinerEmitter.cpp b/llvm/utils/TableGen/GICombinerEmitter.cpp
index aa733e2..f30ae86 100644
--- a/llvm/utils/TableGen/GICombinerEmitter.cpp
+++ b/llvm/utils/TableGen/GICombinerEmitter.cpp
@@ -291,7 +291,7 @@ static const DagInit *getDagWithOperatorOfSubClass(const Init &N,
StringRef makeNameForAnonInstr(CombineRule &Rule) {
return insertStrTab(to_string(
- format("__anon%" PRIu64 "_%" PRIu64, Rule.getID(), Rule.allocUID())));
+ format("__anon%" PRIu64 "_%u", Rule.getID(), Rule.allocUID())));
}
StringRef makeDebugName(CombineRule &Rule, StringRef Name) {
@@ -300,7 +300,7 @@ StringRef makeDebugName(CombineRule &Rule, StringRef Name) {
StringRef makeNameForAnonPredicate(CombineRule &Rule) {
return insertStrTab(to_string(
- format("__anonpred%" PRIu64 "_%" PRIu64, Rule.getID(), Rule.allocUID())));
+ format("__anonpred%" PRIu64 "_%u", Rule.getID(), Rule.allocUID())));
}
void CombineRule::declareMatchData(StringRef PatternSymbol, StringRef Type,