Skip to content
Merged
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
5 changes: 2 additions & 3 deletions include/swift/Basic/OwnedString.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ class OwnedString {
class TextOwner final : public llvm::ThreadSafeRefCountedBase<TextOwner>,
public llvm::TrailingObjects<TextOwner, char> {
TextOwner(StringRef Text) {
std::uninitialized_copy(Text.begin(), Text.end(),
getTrailingObjects<char>());
std::uninitialized_copy(Text.begin(), Text.end(), getTrailingObjects());
}

public:
Expand All @@ -50,7 +49,7 @@ class OwnedString {
/// data.
void operator delete(void *p) { ::operator delete(p); }

const char *getText() const { return getTrailingObjects<char>(); }
const char *getText() const { return getTrailingObjects(); }
};

/// The text this owned string represents
Expand Down