[flang-commits] [flang] [flang][cuda] Add a proper TODO for allocate statement for cuda var (PR #88034)

via flang-commits flang-commits at lists.llvm.org
Mon Apr 8 23:04:59 PDT 2024


================
@@ -212,6 +212,16 @@ inline bool IsCUDADeviceContext(const Scope *scope) {
   return false;
 }
 
+inline bool HasCUDAAttr(const Symbol &sym) {
+  if (const auto *details =
+          sym.GetUltimate().detailsIf<semantics::ObjectEntityDetails>()) {
----------------
jeanPerier wrote:

```suggestion
  if (const auto *details{
          sym.GetUltimate().detailsIf<semantics::ObjectEntityDetails>()}) {
```

Suggestion probably needs formatting though.

https://github.com/llvm/llvm-project/pull/88034


More information about the flang-commits mailing list