================
@@ -2803,6 +2803,10 @@ class ASTContext : public RefCountedBase<ASTContext> {
     return getUnqualifiedArrayType(T, Quals);
   }
 
+  // Determine whether an array is a valid return type
+  // Array is a valid return type for HLSL
+  bool isReturnableArrayType() const { return getLangOpts().HLSL; }
----------------
llvm-beanz wrote:

Looking at how this is used, it might actually just be better if this were a 
function on LangOpts. Then you could just have something similar to what you 
wrote, just on the language options:

```
bool allowArrayReturnTypes() const { return HLSL; }
```

https://github.com/llvm/llvm-project/pull/127896
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to