mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Fix a compilation error
This fixes a `copy constructor must pass its first argument by reference` compilation error when compiled with a recent enough Clang (after fe0d3e3764)
This commit is contained in:
committed by
GitHub
parent
83db8112b4
commit
dd83d1e1e0
@@ -56,7 +56,7 @@ public:
|
||||
|
||||
/// Construct an arbitrarily typed buffer from a Buffer<const char>, using
|
||||
/// const char as an "untyped" buffer type.
|
||||
Buffer(Buffer<const char> buffer)
|
||||
Buffer(const Buffer<const char> &buffer)
|
||||
: ptr(reinterpret_cast<T *>(buffer.ptr)) {}
|
||||
|
||||
/// The pointer to the buffer's underlying storage.
|
||||
|
||||
Reference in New Issue
Block a user