Merge pull request #14161 from Radvendii/exprophasattr-alloc

libexpr: fixup ExprOpHasAttr() to take allocator reference
This commit is contained in:
Sergei Zimmerman
2025-10-05 22:49:17 +00:00
committed by GitHub

View File

@@ -350,7 +350,7 @@ struct ExprOpHasAttr : Expr
Expr * e;
std::span<AttrName> attrPath;
ExprOpHasAttr(std::pmr::polymorphic_allocator<char> alloc, Expr * e, std::vector<AttrName> attrPath)
ExprOpHasAttr(std::pmr::polymorphic_allocator<char> & alloc, Expr * e, std::vector<AttrName> attrPath)
: e(e)
, attrPath({alloc.allocate_object<AttrName>(attrPath.size()), attrPath.size()})
{