diff options
author | Timm Baeder <tbaeder@redhat.com> | 2025-07-16 13:26:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-16 13:26:10 +0200 |
commit | 3b8a18c27a1e70895feac15d48b3a6122e6b377f (patch) | |
tree | 35613b7763d4ce0fc18fc014ecc5bb8645628b78 /clang/lib/AST/ByteCode/Interp.cpp | |
parent | 73630d5e20c8f29aec426954f448079665caf3ab (diff) | |
download | llvm-3b8a18c27a1e70895feac15d48b3a6122e6b377f.zip llvm-3b8a18c27a1e70895feac15d48b3a6122e6b377f.tar.gz llvm-3b8a18c27a1e70895feac15d48b3a6122e6b377f.tar.bz2 |
[clang][bytecode] Fix contains check using llvm::find (#149050)
We need to compare to the end() interator.
Diffstat (limited to 'clang/lib/AST/ByteCode/Interp.cpp')
-rw-r--r-- | clang/lib/AST/ByteCode/Interp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ByteCode/Interp.cpp b/clang/lib/AST/ByteCode/Interp.cpp index edb1866..e8b5194 100644 --- a/clang/lib/AST/ByteCode/Interp.cpp +++ b/clang/lib/AST/ByteCode/Interp.cpp @@ -574,7 +574,7 @@ bool CheckConst(InterpState &S, CodePtr OpPC, const Pointer &Ptr) { // The This pointer is writable in constructors and destructors, // even if isConst() returns true. - if (llvm::find(S.InitializingBlocks, Ptr.block())) + if (llvm::is_contained(S.InitializingBlocks, Ptr.block())) return true; const QualType Ty = Ptr.getType(); |