Skip to content

Commit

Permalink
Merge pull request #1348 from jumormt/opaque-c
Browse files Browse the repository at this point in the history
Rm std::transform
  • Loading branch information
yuleisui authored Jan 25, 2024
2 parents 7a5a0ba + 7fc8a17 commit c6e3549
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions svf-llvm/lib/ObjTypeInference.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,9 @@ const Type *ObjTypeInference::fwInferObjType(const Value *startValue)
if (canUpdate)
{
Set<const Type *> types;
std::transform(infersites.begin(), infersites.end(), std::inserter(types, types.begin()),
infersiteToType);
for (const auto &infersite: infersites) {
types.insert(infersiteToType(infersite));
}
_valueToInferSites[curValue] = infersites;
_valueToType[curValue] = selectLargestType(types);
}
Expand Down

0 comments on commit c6e3549

Please sign in to comment.