Skip to content

Commit

Permalink
[IR Compiler] create FfiNameOrId from java side to fix undefined error (
Browse files Browse the repository at this point in the history
  • Loading branch information
shirly121 committed Aug 2, 2022
1 parent 7e826c6 commit 7009cca
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,12 @@ FfiResult.ByValue appendPatternOperator(

FfiNameOrId.ByValue noneNameOrId();

FfiNameOrId.ByValue cstrAsNameOrId(String name);
default FfiNameOrId.ByValue cstrAsNameOrId(String name) {
FfiNameOrId.ByValue ffiName = new FfiNameOrId.ByValue();
ffiName.opt = FfiNameIdOpt.Name;
ffiName.name = name;
return ffiName;
}

FfiConst.ByValue cstrAsConst(String value);

Expand Down

0 comments on commit 7009cca

Please sign in to comment.