[clang] [Clang] Implement C++26 Attributes for Structured Bindings (P0609R3) (PR #89906)
NAKAMURA Takumi via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 28 16:34:42 PDT 2024
================
@@ -1115,7 +1115,9 @@ int64_t Decl::getID() const {
const FunctionType *Decl::getFunctionType(bool BlocksToo) const {
QualType Ty;
- if (const auto *D = dyn_cast<ValueDecl>(this))
+ if (const auto *D = dyn_cast<BindingDecl>(this))
----------------
chapuni wrote:
Seems causes the warning. `[-Wunused-but-set-variable]`
https://github.com/llvm/llvm-project/pull/89906
More information about the cfe-commits
mailing list