llvm
llvm copied to clipboard
fixing Vector example in classic llvm bindings
The Vector example fails with:
llvm-vector: example/Vector.hs:94:9-60: Irrefutable pattern failed for pattern Data.Maybe.Just iovec'
The problem is that the function getModuleValues does not return the named function "vectest" although it was created before. This is caused by filterM isIntrinsic in Core.Util.getFunctions. It was introduced by https://github.com/bos/llvm/commit/61820447235bde880b679a38e09d490dbd9dd8d9
I wonder why the filter was added. Maybe not . isIntrinsic was meant?