Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[support] Provide overload to PrintNumber that use C++ types
This attempts to address an issue with overload resolution for `PrintNumber` with `size_t` parameters on Darwin, brought up in https://reviews.llvm.org/D146492. On Aarch64 Darwin, `uint64_t` has a different typedef than `size_t` (e.g., `unsigned long long` vs. `unsigned long`), whereas on Linux and Windows they are the same. This commit also reverts the static_cast's added in 064e249, since they are no longer needed. Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D146771
- Loading branch information
Showing
4 changed files
with
94 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters