diff options
author | Hui <hui.xie1990@gmail.com> | 2025-06-07 08:47:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-07 08:47:46 +0100 |
commit | 692c5cdb56a321b0b0e97dd08cf90878cd6970fb (patch) | |
tree | adc5185ba9cdbd160e2b81558d40d977343068e6 /llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp | |
parent | 90a52f4942961a5c32afc69d69470c6b7e5bcb8a (diff) | |
download | llvm-692c5cdb56a321b0b0e97dd08cf90878cd6970fb.zip llvm-692c5cdb56a321b0b0e97dd08cf90878cd6970fb.tar.gz llvm-692c5cdb56a321b0b0e97dd08cf90878cd6970fb.tar.bz2 |
[libc++] Do not call `reserve` in flat containers if underlying container is user defined (#140379)
This is brought up in the LWG reflector. We currently call `reserve` if
the underlying container has one. But the spec does not specify what
`reserve` should do for Sequence Container. So in theory if the
underlying container is user defined type and it can have a function
called `reserve` which does something completely different.
The fix is to just call `reserve` for STL containers if it has one
Diffstat (limited to 'llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp')
0 files changed, 0 insertions, 0 deletions