From 7fc8a17c50da815ab01ae5ccd172fa4c7fec31cf Mon Sep 17 00:00:00 2001 From: jumormt Date: Thu, 25 Jan 2024 23:28:52 +1100 Subject: [PATCH] [Don't merge!] test mac CI, rm std::transform --- svf-llvm/lib/ObjTypeInference.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/svf-llvm/lib/ObjTypeInference.cpp b/svf-llvm/lib/ObjTypeInference.cpp index c0ec57ca4..c755647b2 100644 --- a/svf-llvm/lib/ObjTypeInference.cpp +++ b/svf-llvm/lib/ObjTypeInference.cpp @@ -352,8 +352,9 @@ const Type *ObjTypeInference::fwInferObjType(const Value *startValue) if (canUpdate) { Set 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); }