Skip to content

Commit dd83d1e

Browse files
authored
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 llvm/llvm-project@fe0d3e3)
1 parent 83db811 commit dd83d1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/GenericMetadataBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class InProcessReaderWriter {
5656

5757
/// Construct an arbitrarily typed buffer from a Buffer<const char>, using
5858
/// const char as an "untyped" buffer type.
59-
Buffer(Buffer<const char> buffer)
59+
Buffer(const Buffer<const char> &buffer)
6060
: ptr(reinterpret_cast<T *>(buffer.ptr)) {}
6161

6262
/// The pointer to the buffer's underlying storage.

0 commit comments

Comments
 (0)