paradigmxyz / revmc

JIT and AOT compiler for the Ethereum Virtual Machine, built on Revm.
Apache License 2.0
205 stars 22 forks source link

fix: dereferenceable attribute on builtins #25

Closed DaniPopes closed 5 months ago

DaniPopes commented 5 months ago

dereferenceable(<n>) was passed to builtin params with n_inputs * 32, so something like SELFBALANCE that has more outputs that inputs (1 > 0) would have ptr dereferenceable(0). This basically means that we were telling LLVM that the pointer is never used :(