Use the new PathV2 instead of implementing the logic in clang.