Skip to content

Commit

Permalink
annotate this optional use
Browse files Browse the repository at this point in the history
  • Loading branch information
Vighnesh-V committed Oct 11, 2024
1 parent 507832b commit b76941b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Analysis/src/Differ.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -944,11 +944,15 @@ std::vector<std::pair<TypeId, TypeId>>::const_reverse_iterator DifferEnvironment
return visitingStack.crend();
}

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
DifferResult diff(TypeId ty1, TypeId ty2)
{
DifferEnvironment differEnv{ty1, ty2, std::nullopt, std::nullopt};
return diffUsingEnv(differEnv, ty1, ty2);
}
#pragma GCC diagnostic pop


DifferResult diffWithSymbols(TypeId ty1, TypeId ty2, std::optional<std::string> symbol1, std::optional<std::string> symbol2)
{
Expand Down

0 comments on commit b76941b

Please sign in to comment.