Skip to content

Commit c204606

Browse files
Merge pull request #83224 from swiftlang/jepa-rebranch
unittests: Adjust code after changes to `llvm::TrailingObjects` API
2 parents ed8b485 + 58f957c commit c204606

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

include/swift/Basic/OwnedString.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ class OwnedString {
3535
class TextOwner final : public llvm::ThreadSafeRefCountedBase<TextOwner>,
3636
public llvm::TrailingObjects<TextOwner, char> {
3737
TextOwner(StringRef Text) {
38-
std::uninitialized_copy(Text.begin(), Text.end(),
39-
getTrailingObjects<char>());
38+
std::uninitialized_copy(Text.begin(), Text.end(), getTrailingObjects());
4039
}
4140

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

53-
const char *getText() const { return getTrailingObjects<char>(); }
52+
const char *getText() const { return getTrailingObjects(); }
5453
};
5554

5655
/// The text this owned string represents

0 commit comments

Comments
 (0)