Skip to content

Commit 310323f

Browse files
authored
Make sure _ln is actual codegened as int32 (#29088)
Follow up to #29084 [Not reviewed]
2 parents fc0a132 + ecb3ee5 commit 310323f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

compiler/passes/insertLineNumbers.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Pass::LineAndFile Pass::makeASTLine(CallExpr* call) {
151151
// TODO: can this just use CHPL_FILE_IDX_COMMAND_LINE_ARG?
152152
// Make up pretend line numbers for errors with command line
153153
// configuration variables.
154-
Symbol* line = new_IntSymbol(0);
154+
Symbol* line = new_IntSymbol(0, INT_SIZE_32);
155155

156156
FnSymbol* fn = call->resolvedFunction();
157157

@@ -175,7 +175,7 @@ Pass::LineAndFile Pass::makeASTLine(CallExpr* call) {
175175

176176
} else {
177177
// Apply the line number from the call AST node
178-
Symbol* line = new_IntSymbol(call->linenum());
178+
Symbol* line = new_IntSymbol(call->linenum(), INT_SIZE_32);
179179

180180
int filenameIdx = addFilenameTableEntry(call->fname());
181181

0 commit comments

Comments
 (0)