Fix(Aot): Fix pgo crash in rili application

Issue: #I7HUW1
Change-Id: Ifb8cb5a619c32ebcc3a614f8cdd95ed5f49e3345
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
This commit is contained in:
yingguofeng@huawei.com 2023-07-03 12:58:23 +08:00
parent 0d362bc72c
commit 01d0329204

View File

@ -179,6 +179,9 @@ void ProfilerStubBuilder::ProfileCall(GateRef glue, GateRef pc, GateRef profileT
}
Bind(&uninitialLabel);
{
Label fastLabel(env);
Branch(TaggedIsUndefined(slotValue), &fastLabel, &slowpath);
Bind(&fastLabel);
SetValueToTaggedArray(VariableType::JS_ANY(), glue, profileTypeInfo, slotId, IntToTaggedInt(*inc));
Jump(&slowpath);
}