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)
commit6093d143c5a76d168854321a1fc3d63e9c6d1ee6
tree347116319443ee58291614b2506cc3db876ff83a
parentcf739b8c3dac5bbee2a81b300d6cdf7b60af53dc
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.

llvm-svn: 243538
clang/lib/Sema/SemaInit.cpp
clang/test/SemaCXX/warn-pessmizing-move.cpp
clang/test/SemaCXX/warn-redundant-move.cpp