Skip to content

Commit 05da1de

Browse files
committedOct 12, 2024
Fix uses of ends_with in GCChecker missed in LLVM 18 bump
1 parent 4c23eb4 commit 05da1de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/clangsa/GCChecker.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ bool GCChecker::isGCTracked(const Expr *E) {
865865

866866
bool GCChecker::isGloballyRootedType(QualType QT) const {
867867
return isJuliaType(
868-
[](StringRef Name) { return Name.endswith("jl_sym_t"); }, QT);
868+
[](StringRef Name) { return Name.ends_with("jl_sym_t"); }, QT);
869869
}
870870

871871
bool GCChecker::isSafepoint(const CallEvent &Call, CheckerContext &C) const {
@@ -1166,10 +1166,10 @@ void GCChecker::checkDerivingExpr(const Expr *Result, const Expr *Parent,
11661166
// TODO: We may want to refine this. This is to track pointers through the
11671167
// array list in jl_module_t.
11681168
bool ParentIsModule = isJuliaType(
1169-
[](StringRef Name) { return Name.endswith("jl_module_t"); },
1169+
[](StringRef Name) { return Name.ends_with("jl_module_t"); },
11701170
Parent->getType());
11711171
bool ResultIsArrayList = isJuliaType(
1172-
[](StringRef Name) { return Name.endswith("arraylist_t"); },
1172+
[](StringRef Name) { return Name.ends_with("arraylist_t"); },
11731173
Result->getType());
11741174
if (!(ParentIsModule && ResultIsArrayList) && isGCTracked(Parent)) {
11751175
ResultTracked = false;

0 commit comments

Comments
 (0)
Please sign in to comment.