Shopify / yjit

Optimizing JIT compiler built inside CRuby
658 stars 19 forks source link

Fix non RUBY_DEBUG build warnings #288

Closed XrXr closed 3 years ago

XrXr commented 3 years ago

On non RUBY_DEBUG builds, assert() compiles to nothing and the compiler warns about uninitialized variables in those code paths. Replace those asserts with rb_bug() to fix the warnings and do the assert in all builds.

Also put YJIT_STATS check for function delcaration that is only defined in YJIT_STATS builds.