Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions include/phasar/DataFlow/IfdsIde/FlowFunctions.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ class ZeroedFlowFunction : public FlowFunction<D, Container> {

public:
ZeroedFlowFunction(FlowFunctionPtrType FF, D ZV)
: Delegate(std::move(FF)), ZeroValue(ZV) {}
: Delegate(std::move(FF)), ZeroValue(std::move(ZV)) {}
container_type computeTargets(D Source) override {
if (Source == ZeroValue) {
container_type Result = Delegate->computeTargets(Source);
Result.insert(ZeroValue);
return Result;
}
return Delegate->computeTargets(Source);
return Delegate->computeTargets(std::move(Source));
}

private:
Expand Down Expand Up @@ -423,9 +423,7 @@ template <typename D, typename Container> class FlowFunctionTemplates {
///
static auto killAllFlows() {
struct KillAllFF final : public FlowFunction<d_t, container_type> {
Container computeTargets(d_t Source) override {
return {std::move(Source)};
}
Container computeTargets(d_t /*Source*/) override { return Container(); }
};
static auto TheKillAllFlow = std::make_shared<KillAllFF>();

Expand Down