[LLVMdev] finalizeObject function implemetation in MCJIT is wrong

Radek Zagorowicz radek.zagorowicz at gmail.com
Thu Nov 13 08:29:57 PST 2014


Hi all.

I found some issue in implementation of finalizeObject function in
MCJIT.cpp. If you look at the source code of the function, you can notice
that machine code for second "owned" module will never be generated if it
doesn't depend on the first one. More over it will cause a crash if entry
point isn't in first module. Implementation of finalizeObject using for
loop will omit every other module in OwnedModules, because function
generateCodeForModule moves module form "added" to "loaded".
Am I right?

Regards.

rodia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141113/bdea2e51/attachment.html>


More information about the llvm-dev mailing list