Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 4 additions & 2 deletions include/phasar/Pointer/PointsToInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
#include "phasar/Utils/ByRef.h"

#include <cassert>
#include <memory>
#include <optional>
#include <type_traits>
#include <utility>
#include <vector>

namespace psr {

Expand All @@ -39,8 +39,10 @@ struct PointsToTraits<PointsToInfo<PTATraits>> : PTATraits {};
template <typename PTATraits>
class PointsToInfoRef<PTATraits,
std::enable_if_t<is_PointsToTraits_v<PTATraits>>>
: PointsToInfoBase<PointsToInfoRef<PTATraits>> {
: public PointsToInfoBase<PointsToInfoRef<PTATraits>> {
friend class PointsToInfo<PTATraits>;
friend PointsToInfoBase<PointsToInfoRef<PTATraits>>;

Comment thread
MMory marked this conversation as resolved.
using base_t = PointsToInfoBase<PointsToInfoRef<PTATraits>>;

public:
Expand Down
4 changes: 4 additions & 0 deletions lib/Pointer/PointsToInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "llvm/ADT/STLExtras.h"

#include <array>
#include <tuple>
#include <utility>

namespace llvm {
Expand Down Expand Up @@ -151,6 +152,9 @@ class DummyFieldSensitivePointsToAnalysis

PointsToInfo<PointsToTraits<DummyFieldSensitivePointsToAnalysis>> TEPTA4(
std::in_place_type<DummyFieldSensitivePointsToAnalysis>);

// Make sure, the template gets instantiated:
std::ignore = TEPTA1.getInterestingPointersAt(nullptr);
}

template class PointsToInfoBase<DummyFieldSensitivePointsToAnalysis>;
Expand Down