Skip to content

Commit 58f957c

Browse files
committed
unittests: Adjust code after changes to llvm::TrailingObjects API
See: - llvm/llvm-project#138970 - llvm/llvm-project#144930
1 parent 552d6c7 commit 58f957c

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)