dibyendumajumdar / dmr_c

dmr_C is a C parser and JIT compiler with LLVM, Eclipse OMR and NanoJIT backends
Other
52 stars 2 forks source link

A conditional branch may be omitted by NanoJIT #23

Closed dibyendumajumdar closed 7 years ago

dibyendumajumdar commented 7 years ago

It seems that NanoJIT may decide to omit a conditional branch if the code can simply fall through. The branch instructions is returned as NULL in this case causing a crash. We need to detect and avoid trying to add the NULL instruction to the list of jumps to be resolved.

dibyendumajumdar commented 7 years ago

Fixed in 0.2