Correct confusing usage of intirnsic check (#707)

This commit is contained in:
Huang Qi
2021-08-27 19:03:18 +08:00
committed by GitHub
parent e80715f352
commit 6ef74778c7
3 changed files with 9 additions and 7 deletions

View File

@ -2024,7 +2024,7 @@ __call_llvm_intrinsic(const AOTCompContext *comp_ctx,
int32 func_idx;
if (comp_ctx->disable_llvm_intrinsics
&& (aot_intrinsic_check_capability(comp_ctx, name) == false)) {
&& aot_intrinsic_check_capability(comp_ctx, name)) {
if (func_ctx == NULL) {
aot_set_last_error_v("invalid func_ctx for intrinsic: %s", name);
return NULL;