eddyz87 wrote: Tbh, it seems like these checks should be done in `CodeGenFunction::EmitBPFBuiltinExpr`, which is located in `lang/lib/CodeGen/TargetBuiltins/ARM.cpp` for some reason. There a proper location could be reported. https://github.com/llvm/llvm-project/pull/143777