This is an archive of the discontinued LLVM Phabricator instance.

Remove false positive from -Wpessimizing-move and GNU statement expressions
Needs ReviewPublic

Authored by rtrieu on Dec 4 2015, 7:21 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Track whether the initialization came from a GNU statement expression. If it does, prevent the -Wpessiming-move warning from being emitted since the suggested fix can cause a compile error.

Fix for https://llvm.org/bugs/show_bug.cgi?id=25640

Diff Detail

Event Timeline

rtrieu updated this revision to Diff 41971.Dec 4 2015, 7:21 PM
rtrieu retitled this revision from to Remove false positive from -Wpessimizing-move and GNU statement expressions.
rtrieu updated this object.
rtrieu added a subscriber: cfe-commits.