[llvm] 1dbc486 - [globalisel] Fix another mismatch between %d and the RuleID type

Daniel Sanders via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 3 13:36:50 PST 2020


Author: Daniel Sanders
Date: 2020-01-03T13:36:24-08:00
New Revision: 1dbc48645776ee86fed329c10e8fb00c0c79dee6

URL: https://github.com/llvm/llvm-project/commit/1dbc48645776ee86fed329c10e8fb00c0c79dee6
DIFF: https://github.com/llvm/llvm-project/commit/1dbc48645776ee86fed329c10e8fb00c0c79dee6.diff

LOG: [globalisel] Fix another mismatch between %d and the RuleID type

Added: 
    

Modified: 
    llvm/utils/TableGen/GICombinerEmitter.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/utils/TableGen/GICombinerEmitter.cpp b/llvm/utils/TableGen/GICombinerEmitter.cpp
index f30ae86c4fa0..ec3448c59008 100644
--- a/llvm/utils/TableGen/GICombinerEmitter.cpp
+++ b/llvm/utils/TableGen/GICombinerEmitter.cpp
@@ -332,7 +332,7 @@ bool CombineRule::parseDefs() {
             getDefOfSubClass(*Defs->getArg(I), "GIDefMatchData")) {
       declareMatchData(Defs->getArgNameStr(I),
                        MatchDataRec->getValueAsString("Type"),
-                       llvm::to_string(llvm::format("MatchData%d", ID)));
+                       llvm::to_string(llvm::format("MatchData%" PRIu64, ID)));
       continue;
     }
 


        


More information about the llvm-commits mailing list