llvm.org GIT mirror llvm / 726b0ec
NFC: Fix a -Wsign-conversion warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@344564 91177308-0d34-0410-b5e6-96231b3b80d8 Erik Pilkington 11 months ago
1 changed file(s) with 13 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
111111 printStr("}");
112112 --Depth;
113113 }
114
114115 // Overload used when T is exactly 'bool', not merely convertible to 'bool'.
115 template
116 void print(T B) {
117 printStr(B ? "true" : "false");
118 }
119 void print(size_t N) {
120 fprintf(stderr, "%zu", N);
121 }
116 void print(bool B) { printStr(B ? "true" : "false"); }
117
118 template
119 typename std::enable_if::value>::type print(T N) {
120 fprintf(stderr, "%llu", (unsigned long long)N);
121 }
122
123 template
124 typename std::enable_if::value>::type print(T N) {
125 fprintf(stderr, "%lld", (long long)N);
126 }
127
122128 void print(ReferenceKind RK) {
123129 switch (RK) {
124130 case ReferenceKind::LValue: