Skip to content

Commit

Permalink
[llvm-profgen] Fix build failure after 5d7950a.
Browse files Browse the repository at this point in the history
This fixes a build failure with libc++
(`error: no matching function for call to 'max')`
  • Loading branch information
fhahn committed Dec 16, 2022
1 parent abd0975 commit e2b9cd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/tools/llvm-profgen/MissingFrameInferrer.cpp
Expand Up @@ -194,8 +194,8 @@ uint64_t MissingFrameInferrer::computeUniqueTailCallPath(
auto &LocalPath = UniquePaths[{From, To}];
assert((LocalPath.size() <= MaximumSearchDepth + 1) &&
"Path should not be longer than the maximum searching depth");
TailCallMaxTailCallPath =
std::max(LocalPath.size(), TailCallMaxTailCallPath.getValue());
TailCallMaxTailCallPath = std::max(uint64_t(LocalPath.size()),
TailCallMaxTailCallPath.getValue());
#endif
} else {
NonUniquePaths[{From, To}] = NumPaths;
Expand Down

0 comments on commit e2b9cd7

Please sign in to comment.