[PATCH] D39679: [C++11] Fix warning when dropping cv-qualifiers when assigning to a reference with a braced initializer list

Nicolas Lesser via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 14 11:34:40 PDT 2018

Rakete1111 updated this revision to Diff 138423.
Rakete1111 added a comment.

Addressed review comments :)
I added a test case for the crashing code.

Note: I didn't change `Args[0]` to `OnlyArg` in `FK_AddressOfUnaddressableFunction`, because I'm pretty sure that C++ doesn't have unaddressable functions and thus there is no need to decompose an initializer list. Is this correct?



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39679.138423.patch
Type: text/x-patch
Size: 6531 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180314/fc42dc09/attachment.bin>

More information about the cfe-commits mailing list