New comment by q66 on void-packages repository https://github.com/void-linux/void-packages/pull/14656#issuecomment-534550940 Comment: As I see it, ``` Value* samplerCvt = M->getOrInsertFunction("__gen_ocl_sampler_to_int", i32Ty, I->getOperand(0)->getType()); ``` will need changing to ``` Value* samplerCvt = M->getOrInsertFunction("__gen_ocl_sampler_to_int", i32Ty, I->getOperand(0)->getType()).getCallee(); ``` in two places in that file when compiling for llvm9.