Skip to content

Commit 033b51d

Browse files
committed
Use is_contained
1 parent 361077f commit 033b51d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/AST/ByteCode/Interp.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,7 @@ bool CheckConst(InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
575575

576576
// The This pointer is writable in constructors and destructors,
577577
// even if isConst() returns true.
578-
if (llvm::find(S.InitializingBlocks, Ptr.block()) !=
579-
S.InitializingBlocks.end())
578+
if (llvm::is_contained(S.InitializingBlocks, Ptr.block()))
580579
return true;
581580

582581
const QualType Ty = Ptr.getType();

0 commit comments

Comments
 (0)