diff options
author | Kazu Hirata <kazu@google.com> | 2025-08-04 07:40:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-04 07:40:38 -0700 |
commit | 39ca925ffefe2f8307e6ead1f7ffd99c58528d0f (patch) | |
tree | be10e76e186fb25a747f0239fcf96570dfb4263d /clang/lib/AST/ByteCode/Compiler.cpp | |
parent | c5c2570d09de1a78f45a3a03a3167c35b05eae6e (diff) | |
download | llvm-39ca925ffefe2f8307e6ead1f7ffd99c58528d0f.zip llvm-39ca925ffefe2f8307e6ead1f7ffd99c58528d0f.tar.gz llvm-39ca925ffefe2f8307e6ead1f7ffd99c58528d0f.tar.bz2 |
[AST] Use llvm::iterator_range::empty (NFC) (#151904)
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 7a5bd4d..5bcac39 100644 --- a/clang/lib/AST/ByteCode/Compiler.cpp +++ b/clang/lib/AST/ByteCode/Compiler.cpp @@ -5914,7 +5914,7 @@ bool Compiler<Emitter>::emitLambdaStaticInvokerBody(const CXXMethodDecl *MD) { const CXXRecordDecl *ClosureClass = MD->getParent(); const CXXMethodDecl *LambdaCallOp = ClosureClass->getLambdaCallOperator(); - assert(ClosureClass->captures_begin() == ClosureClass->captures_end()); + assert(ClosureClass->captures().empty()); const Function *Func = this->getFunction(LambdaCallOp); if (!Func) return false; |