diff options
author | Yanzuo Liu <zwuis@outlook.com> | 2025-07-01 19:15:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-01 19:15:12 +0800 |
commit | 90e20d4f42c31060a64a4848affd2b1fd16a4ffe (patch) | |
tree | 2f7d42ba77413e462200bf08617a605d312af3e0 /clang/lib/AST/ByteCode/Compiler.cpp | |
parent | fd46e409a91f66764b3c9d19dd3d6d3eb48c61ff (diff) | |
download | llvm-90e20d4f42c31060a64a4848affd2b1fd16a4ffe.zip llvm-90e20d4f42c31060a64a4848affd2b1fd16a4ffe.tar.gz llvm-90e20d4f42c31060a64a4848affd2b1fd16a4ffe.tar.bz2 |
[Clang][Bytecode] Implement P1061 structured binding pack (#146474)
Other part of this feature was implemented by #121417.
Diffstat (limited to 'clang/lib/AST/ByteCode/Compiler.cpp')
-rw-r--r-- | clang/lib/AST/ByteCode/Compiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ByteCode/Compiler.cpp b/clang/lib/AST/ByteCode/Compiler.cpp index 759d5a6..20580c8 100644 --- a/clang/lib/AST/ByteCode/Compiler.cpp +++ b/clang/lib/AST/ByteCode/Compiler.cpp @@ -5275,7 +5275,7 @@ bool Compiler<Emitter>::visitCompoundStmt(const CompoundStmt *S) { template <class Emitter> bool Compiler<Emitter>::maybeEmitDeferredVarInit(const VarDecl *VD) { if (auto *DD = dyn_cast_if_present<DecompositionDecl>(VD)) { - for (auto *BD : DD->bindings()) + for (auto *BD : DD->flat_bindings()) if (auto *KD = BD->getHoldingVar(); KD && !this->visitVarDecl(KD)) return false; } |