================
@@ -542,7 +542,8 @@ bool SemaOpenCL::checkBuiltinToAddr(unsigned BuiltinID,
CallExpr *Call) {
auto RT = Call->getArg(0)->getType();
if (!RT->isPointerType() ||
RT->getPointeeType().getAddressSpace() == LangAS::opencl_constant) {
- Diag(Call->getBeginLoc(), diag::err_opencl_builtin_to_addr_invalid_arg)
+ Diag(Call->getArg(0)->getBeginLoc(),
----------------
zyn0217 wrote:
Got it, thanks
https://github.com/llvm/llvm-project/pull/141058
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits