Closed obra closed 1 year ago
these are globals defined in different translation units their initialisation order is not defined. In my case they initialised the wrong way around which triggered the UBSAN warning.
FWIW I got rid of the warning using the below use of the C++ FAQ suggestion https://isocpp.org/wiki/faq/ctors#static-init-order-on-first-use
Fixes Kaleidoscope#1348
Depends on Kaleidoscope #1349
these are globals defined in different translation units their initialisation order is not defined. In my case they initialised the wrong way around which triggered the UBSAN warning.
FWIW I got rid of the warning using the below use of the C++ FAQ suggestion https://isocpp.org/wiki/faq/ctors#static-init-order-on-first-use
Fixes Kaleidoscope#1348
Depends on Kaleidoscope #1349