[PATCH] D15255: Remove false positive from -Wpessimizing-move and GNU statement expressions
Richard Trieu via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 4 19:21:52 PST 2015
rtrieu created this revision.
rtrieu added a subscriber: cfe-commits.
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
http://reviews.llvm.org/D15255
Files:
include/clang/Sema/Initialization.h
lib/Sema/SemaExpr.cpp
lib/Sema/SemaInit.cpp
test/SemaCXX/warn-pessmizing-move.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15255.41971.patch
Type: text/x-patch
Size: 4932 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151205/ebde2e73/attachment.bin>
More information about the cfe-commits
mailing list