Skip to content

Commit

Permalink
Fix anything merge (rust-lang#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Sep 2, 2021
1 parent 225d279 commit 8f0a66a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enzyme/Enzyme/TypeAnalysis/TypeTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class TypeTree : public std::enable_shared_from_this<TypeTree> {
auto found = mapping.find(tmp);
if (found != mapping.end()) {
// Already exists as is
if (found->second == CT)
if (found->second == CT || found->second == BaseType::Anything)
return changed;

if (intsAreLegalSubPointer &&
Expand All @@ -178,7 +178,7 @@ class TypeTree : public std::enable_shared_from_this<TypeTree> {
auto found = mapping.find(tmp);
if (found != mapping.end()) {
// Already exists as is
if (found->second == CT)
if (found->second == CT || found->second == BaseType::Anything)
return changed;

if (intsAreLegalSubPointer &&
Expand Down

0 comments on commit 8f0a66a

Please sign in to comment.