]> granicus.if.org Git - clang/commit
[CFG] [analyzer] Allow elidable copies to have more than one arguments.
authorArtem Dergachev <artem.dergachev@gmail.com>
Tue, 17 Jul 2018 00:57:57 +0000 (00:57 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Tue, 17 Jul 2018 00:57:57 +0000 (00:57 +0000)
commitcfb8e36efb59fe347b21633166082c3c8328a727
tree642787f89909b9e2aed175fe441bbed165ee4922
parentbf89e7dc6e314c1da0a1fd0c1ac732a774873268
[CFG] [analyzer] Allow elidable copies to have more than one arguments.

Copy-constructors and move-constructors may have default arguments. It is
incorrect to assert that they only have one argument, i.e. the reference to the
object being copied or moved. Remove the assertion.

Differential Revision: https://reviews.llvm.org/D49215

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@337229 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/CFG.cpp
test/Analysis/cfg-rich-constructors.cpp