File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ string::reserve(size_t c2) noexcept
99
99
if (!isbig ()) {
100
100
if (!(p2 = (char *)malloc (c2)))
101
101
__builtin_trap ();
102
- __builtin_memcpy (p2, data (), size () + 1 );
102
+ memcpy (p2, data (), size () + 1 );
103
103
} else {
104
104
if (!(p2 = (char *)realloc (big ()->p , c2)))
105
105
__builtin_trap ();
@@ -139,7 +139,6 @@ string::append(char ch) noexcept
139
139
__builtin_trap ();
140
140
reserve (c2);
141
141
}
142
- // XXX do we care to fence this?
143
142
data ()[size ()] = ch;
144
143
data ()[size () + 1 ] = 0 ;
145
144
if (isbig ()) {
@@ -174,7 +173,6 @@ string::append(char ch, size_t size) noexcept
174
173
grow (size);
175
174
if (size)
176
175
memset (data () + this ->size (), ch, size);
177
- // XXX fence?
178
176
if (isbig ()) {
179
177
big ()->n += size;
180
178
} else {
You can’t perform that action at this time.
0 commit comments