mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-06 09:21:38 +00:00
Fix PR#31454 - 'basic_string<T>::push_back() crashes if sizeof(T)>sizeof(long long)'. We were mishandling the small-string optimization calculations for very large 'characters'. This may be an ABI change (change the size of) strings of very large 'characters', but since they never worked, I'm not too concerned.
llvm-svn: 324531
This commit is contained in:
1 parent
ce26819f9e
commit
fc940277cb
2 files changed
+8
-5
No files matched your search
+1
-2
@@ -48,7 +48,7 @@ int main()
|
||||
test(S("12345678901234567890"), 'a', S("12345678901234567890a"));
|
||||
}
|
||||
#endif
|
||||
#if 0
|
||||
|
||||
{
|
||||
// https://bugs.llvm.org/show_bug.cgi?id=31454
|
||||
std::basic_string<veryLarge> s;
|
||||
@@ -57,5 +57,4 @@ int main()
|
||||
s.push_back(vl);
|
||||
s.push_back(vl);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
Reference in new issue
Block a user