Skip to content

Commit

Permalink
cleanup constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
tgymnich committed Aug 11, 2023
1 parent 1c43103 commit c4c9d97
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions enzyme/Enzyme/TypeAnalysis/Trie.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,9 @@ class Trie : public std::enable_shared_from_this<Trie> {
std::optional<ConcreteType> ct;

public:
Trie(BaseType BT) {
ct = BT;
mapping = std::map<int, Trie *>{};
};
Trie() : Trie(ConcreteType(BaseType::Unknown)){};
Trie(ConcreteType dat) {
ct = dat;
mapping = std::map<int, Trie *>{};
}
Trie(BaseType BT) : ct(BT) {};
Trie() : Trie(ConcreteType(BaseType::Unknown)) {};
Trie(ConcreteType dat) : ct(dat) {};

/// Lookup the underlying ConcreteType at a given offset sequence
/// or Unknown if none exists
Expand Down

0 comments on commit c4c9d97

Please sign in to comment.