Browse Source

Fix ir_print.cpp i32 line/column values

gingerBill 4 years ago
parent
commit
0ae1b96182
1 changed files with 7 additions and 7 deletions
  1. 7 7
      src/ir_print.cpp

+ 7 - 7
src/ir_print.cpp

@@ -2885,8 +2885,8 @@ void print_llvm_ir(irGen *ir) {
 				            ", linkageName: \"%.*s\""
 				            ", linkageName: \"%.*s\""
 				            ", scope: !%d"
 				            ", scope: !%d"
 				            ", file: !%d"
 				            ", file: !%d"
-				            ", line: %td"
-				            ", scopeLine: %td"
+				            ", line: %d"
+				            ", scopeLine: %d"
 				            ", isDefinition: true"
 				            ", isDefinition: true"
 				            ", isLocal: false" // TODO(lachsinc): Is this fine?
 				            ", isLocal: false" // TODO(lachsinc): Is this fine?
 				            ", flags: DIFlagPrototyped"
 				            ", flags: DIFlagPrototyped"
@@ -2910,8 +2910,8 @@ void print_llvm_ir(irGen *ir) {
 			case irDebugInfo_Location:
 			case irDebugInfo_Location:
 				GB_ASSERT_NOT_NULL(di->Location.scope);
 				GB_ASSERT_NOT_NULL(di->Location.scope);
 				ir_fprintf(f, "!DILocation("
 				ir_fprintf(f, "!DILocation("
-				              "line: %td"
-				            ", column: %td"
+				              "line: %d"
+				            ", column: %d"
 				            ", scope: !%d)",
 				            ", scope: !%d)",
 				            di->Location.pos.line,
 				            di->Location.pos.line,
 				            di->Location.pos.column,
 				            di->Location.pos.column,
@@ -2921,8 +2921,8 @@ void print_llvm_ir(irGen *ir) {
 				GB_ASSERT_NOT_NULL(di->LexicalBlock.file);
 				GB_ASSERT_NOT_NULL(di->LexicalBlock.file);
 				GB_ASSERT_NOT_NULL(di->LexicalBlock.scope);
 				GB_ASSERT_NOT_NULL(di->LexicalBlock.scope);
 				ir_fprintf(f, "distinct !DILexicalBlock("
 				ir_fprintf(f, "distinct !DILexicalBlock("
-				              "line: %td"
-				            ", column: %td"
+				              "line: %d"
+				            ", column: %d"
 				            ", file: !%d"
 				            ", file: !%d"
 				            ", scope: !%d)",
 				            ", scope: !%d)",
 				            di->LexicalBlock.pos.line,
 				            di->LexicalBlock.pos.line,
@@ -3039,7 +3039,7 @@ void print_llvm_ir(irGen *ir) {
 				}
 				}
 				if (di->CompositeType.file != nullptr) {
 				if (di->CompositeType.file != nullptr) {
 					ir_fprintf(f, ", file: !%d"
 					ir_fprintf(f, ", file: !%d"
-					              ", line: %td",
+					              ", line: %d",
 					              di->CompositeType.file->id,
 					              di->CompositeType.file->id,
 					              di->CompositeType.pos.line);
 					              di->CompositeType.pos.line);
 				}
 				}