From 013594c2e21ab4abfe515e563c9a825bda45e086 Mon Sep 17 00:00:00 2001 From: Engin Kayraklioglu Date: Tue, 25 Jul 2023 12:19:30 -0700 Subject: [PATCH] Fix a bug with the C backend Signed-off-by: Engin Kayraklioglu --- compiler/codegen/cg-expr.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/codegen/cg-expr.cpp b/compiler/codegen/cg-expr.cpp index 9cf94c917b5d..279902cdd26b 100644 --- a/compiler/codegen/cg-expr.cpp +++ b/compiler/codegen/cg-expr.cpp @@ -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 @@ -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); } } } @@ -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 args; TypeSymbol* dt;