We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 262c7b7 commit f0b8069Copy full SHA for f0b8069
flang/include/flang/Semantics/tools.h
@@ -235,10 +235,8 @@ inline bool IsCUDADevice(const Symbol &sym) {
235
236
inline bool IsCUDAShared(const Symbol &sym) {
237
if (const auto *details{sym.GetUltimate().detailsIf<ObjectEntityDetails>()}) {
238
- if (details->cudaDataAttr() &&
239
- *details->cudaDataAttr() == common::CUDADataAttr::Shared) {
240
- return true;
241
- }
+ return details->cudaDataAttr() &&
+ *details->cudaDataAttr() == common::CUDADataAttr::Shared;
242
}
243
return false;
244
0 commit comments