[clang] [HLSL] Use hlsl_device address space for getpointer. (PR #127675)
Helena Kotas via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 10 18:11:42 PDT 2025
================
@@ -2379,8 +2379,10 @@ bool SemaHLSL::CheckBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall) {
auto *ResourceTy =
TheCall->getArg(0)->getType()->castAs<HLSLAttributedResourceType>();
QualType ContainedTy = ResourceTy->getContainedType();
- // TODO: Map to an hlsl_device address space.
- TheCall->setType(getASTContext().getPointerType(ContainedTy));
+ auto returnType =
----------------
hekota wrote:
Nit - local variables should be PascalCase.
```suggestion
auto ReturnType =
```
https://github.com/llvm/llvm-project/pull/127675
More information about the cfe-commits
mailing list