Skip to content

Commit

Permalink
[libc++][ASan] Fix std::basic_string trait type (#91590)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tacet authored May 9, 2024
1 parent 937643b commit 6c83565
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libcxx/include/string
Original file line number Diff line number Diff line change
Expand Up @@ -741,8 +741,8 @@ public:
// is kept inside objects memory (short string optimization), instead of in allocated
// external memory. In such cases, the destructor is responsible for unpoisoning
// the memory to avoid triggering false positives.
// Therefore it's crucial to ensure the destructor is called
using __trivially_relocatable = false_type;
// Therefore it's crucial to ensure the destructor is called.
using __trivially_relocatable = void;
#else
using __trivially_relocatable = __conditional_t<
__libcpp_is_trivially_relocatable<allocator_type>::value && __libcpp_is_trivially_relocatable<pointer>::value,
Expand Down

0 comments on commit 6c83565

Please sign in to comment.