[Patch] Make llvm::Regex non-copyable
Maciej Piechotka
uzytkownik2 at gmail.com
Tue Dec 31 09:25:00 PST 2013
The current implementation of llvm::Regex does not support copy
construction of it's values. However it is not enforced so copying
llvm::Regex leads to crash (well - technically undefined behaviour as
free'd memory is accessed and then freed once again).
Attached patch makes llvm::Regex non-copyable but adds the move
constructor for C++11.
Best regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Prohibit-copy-construction-of-the-llvm-Regex-as-it-c.patch
Type: text/x-patch
Size: 2031 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131231/4c6bc06e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131231/4c6bc06e/attachment.sig>
More information about the llvm-commits
mailing list