diff options
| author | Daniel Sanders <daniel_l_sanders@apple.com> | 2019-12-18 14:56:23 +0000 |
|---|---|---|
| committer | Daniel Sanders <daniel_l_sanders@apple.com> | 2019-12-18 14:56:23 +0000 |
| commit | 3a779b7dfd8ee2924997dbed7f6c43d7989895f6 (patch) | |
| tree | 8309d4ee15e9b033a590b001ab9fa5fa225bc6c5 /llvm/utils/TableGen | |
| parent | e14ff22694c28b5e731502bfc30192b3208d4d8d (diff) | |
| download | bcm5719-llvm-3a779b7dfd8ee2924997dbed7f6c43d7989895f6.tar.gz bcm5719-llvm-3a779b7dfd8ee2924997dbed7f6c43d7989895f6.zip | |
[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/utils/TableGen')
| -rw-r--r-- | llvm/utils/TableGen/GICombinerEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/GICombinerEmitter.cpp b/llvm/utils/TableGen/GICombinerEmitter.cpp index aa733e26031..f30ae86c4fa 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, |

