FIX: duplicated elements in ObjC Block structure

Saliev, Rafik F rafik.f.saliev at intel.com
Fri Apr 10 08:08:19 PDT 2015


Hello

The attached patch fixes the bug when the block structure alignment algorithm causes duplicated elements inside the block info structure.
The cause of the bug: previous code assumes, that SmallVector::erase(first, last) removes elements inclusively, but this method removes by following formula: "[first, last)".

Best regards.
================
Rafik F. Saliev
Graphics Software Developer
Intel Corporation

--------------------------------------------------------------------

Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN.

Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek
przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by
others is strictly prohibited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150410/616428fe/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lib-CodeGen-CGBlocks.cpp.patch
Type: application/octet-stream
Size: 391 bytes
Desc: lib-CodeGen-CGBlocks.cpp.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150410/616428fe/attachment.obj>


More information about the cfe-commits mailing list