Revision a8174147251f7b525dbecd1d2c9dc176be94eaad authored by Zalman Stern on 24 September 2022, 00:16:33 UTC, committed by GitHub on 24 September 2022, 00:16:33 UTC
Have ```CodeGen_LLVM::get_vector_type``` return the void type if passed the void type as a scalar base. This makes it possible to call intrinsics returning void via ```CodeGenn_LLVM::call_intrin```.

Should be very safe as currently this anything doing this would fail inside the routine. The change breaks the invariant that any thing returned from get_vector_type is a vector type, but propagating void for function return types is a pretty standard behavior and if this was not intended, it will very likely fail just outside this instead of having failed inside the use. I.e. very low chance of spurious errors from this.
1 parent 6499ad1
History
File Mode Size
src
Makefile -rw-r--r-- 6.0 KB
README.md -rw-r--r-- 1.3 KB
modules.py -rw-r--r-- 3.7 KB
setup.cfg -rw-r--r-- 190 bytes
setup.py -rw-r--r-- 3.8 KB
test.py -rw-r--r-- 2.3 KB

README.md

back to top