]> granicus.if.org Git - clang/commit
Disable -Wpessimizing-move and -Wredundant-move in template instantiations.
authorRichard Trieu <rtrieu@google.com>
Wed, 29 Jul 2015 17:03:34 +0000 (17:03 +0000)
committerRichard Trieu <rtrieu@google.com>
Wed, 29 Jul 2015 17:03:34 +0000 (17:03 +0000)
commit8147824ed3cfe14d9753eafa69d4196f926620b9
tree66c9f2904e85723b4bb4288f8ec36d1807903008
parent57a91f7ae47dc5f2a17176216981696e21c414a7
Disable -Wpessimizing-move and -Wredundant-move in template instantiations.

Dependent types can throw off the analysis for these warnings, possibly giving
conflicting warnings and fix-its.  Disabling the warning in template
instantiations will prevent this problem, and will still catch the
non-dependent cases in templates.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243538 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaInit.cpp
test/SemaCXX/warn-pessmizing-move.cpp
test/SemaCXX/warn-redundant-move.cpp