mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 00:16:30 +00:00
[NFC][flang] Added deduction guide for StaticDescriptor class. (#131690)
I keep getting these warnings when building with clang-17: `warning: 'StaticDescriptor' may not intend to support class template argument deduction [-Wctad-maybe-unsupported]` This change should help avoiding them.
This commit is contained in:
parent
127eb39a8c
commit
02b4522358
@ -481,5 +481,8 @@ private:
|
||||
char storage_[byteSize]{};
|
||||
};
|
||||
|
||||
// Deduction guide to avoid warnings from older versions of clang.
|
||||
StaticDescriptor() -> StaticDescriptor<maxRank, false, 0>;
|
||||
|
||||
} // namespace Fortran::runtime
|
||||
#endif // FLANG_RT_RUNTIME_DESCRIPTOR_H_
|
||||
|
Loading…
x
Reference in New Issue
Block a user