Skip to content

Commit

Permalink
Fix a bug with the C backend
Browse files Browse the repository at this point in the history
Signed-off-by: Engin Kayraklioglu <[email protected]>
  • Loading branch information
e-kayrakli committed Jul 25, 2023
1 parent 12258d9 commit 013594c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compiler/codegen/cg-expr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3854,7 +3854,7 @@ void codegenAssign(GenRet to_ptr, GenRet from)
args.push_back(info->lineno);
args.push_back(gFilenameLookupCache[info->filename]);

codegenCallExprWithArgs(fn.c_str(), args);
codegenCallWithArgs(fn.c_str(), args);
}
}
} else { // PUT
Expand Down Expand Up @@ -3887,7 +3887,7 @@ void codegenAssign(GenRet to_ptr, GenRet from)
args.push_back(info->lineno);
args.push_back(gFilenameLookupCache[info->filename]);

codegenCallExprWithArgs(fn.c_str(), args);
codegenCallWithArgs(fn.c_str(), args);
}
}
}
Expand Down Expand Up @@ -5358,8 +5358,8 @@ DEFINE_PRIM(GET_REQUESTED_SUBLOC) { ret = codegenCallExpr("chpl_task_getRequeste

static void codegenPutGet(CallExpr* call, GenRet &ret) {
// args are:
// localvar, locale, sublocale, remote addr, get(5)==size, line, file
// get(5)==len for array_get/put
// localvar, locale, sublocale(opt), remote addr, get(4|5)==size, line, file
// get(4|5)==len for array_get/put
const char* fn;
std::vector<GenRet> args;
TypeSymbol* dt;
Expand Down

0 comments on commit 013594c

Please sign in to comment.