Duplicated LLVMJitHandle->lljit assignment?

Поиск
Список
Период
Сортировка
Искать

Duplicated LLVMJitHandle->lljit assignment?

От:
Matheus Alcantara <mths.dev@pm.me>
Дата:
Вложения:
Hi,

I was reading the jit implementation and I notice that the lljit field of
LLVMJitHandle is being assigned twice on llvm_compile_module function, is this
correct? I'm attaching a supposed fixes that removes  the second assignment. I
ran meson test and all tests have pass.

--
Matheus Alcantara

Re: Duplicated LLVMJitHandle->lljit assignment?

От:
Gurjeet Singh <gurjeet@singh.im>
Дата:
On Wed, Jul 12, 2023 at 5:22 PM Matheus Alcantara  wrote:
>
> I was reading the jit implementation and I notice that the lljit field of
> LLVMJitHandle is being assigned twice on llvm_compile_module function, is this
> correct? I'm attaching a supposed fixes that removes  the second assignment. I
> ran meson test and all tests have pass.

-        handle->lljit = compile_orc;

LGTM.

Best regards,
Gurjeet
http://Gurje.et


Re: Duplicated LLVMJitHandle->lljit assignment?

От:
Michael Paquier <michael@paquier.xyz>
Дата:
Вложения:
On Wed, Jul 12, 2023 at 06:41:37PM -0700, Gurjeet Singh wrote:
> LGTM.

Indeed.  It looks like a small thinko from 6c57f2e when support for
LLVM12 was added.
--
Michael
FAQ