Skip to content

Commit

Permalink
Merge pull request apple#70321 from allevato/c++20-fixes
Browse files Browse the repository at this point in the history
[C++20] Two very minor C++20 fixes.
  • Loading branch information
allevato committed Dec 8, 2023
2 parents b0d4ba0 + 0eb0aed commit 28e6369
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/swift/Basic/Compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
#if defined(__cplusplus)
#if defined(__cpp_char8_t)
inline constexpr char operator""_swift_u8(char8_t c) { return c; }
inline const char *operator""_swift_u8(const char8_t *p, std::size_t) {
inline const char *operator""_swift_u8(const char8_t *p, size_t) {
return reinterpret_cast<const char *>(p);
}
#define SWIFT_UTF8(literal) u8##literal##_swift_u8
Expand Down
1 change: 1 addition & 0 deletions include/swift/RemoteInspection/MetadataSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ using llvm::cast;

#include <cerrno>
#include <climits>
#include <cstdlib>
#include <string>

namespace swift {
Expand Down

0 comments on commit 28e6369

Please sign in to comment.