Skip to content

[C++20] Two very minor C++20 fixes. #70321

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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