Simplify test helper

llvm-svn: 300399
This commit is contained in:
Eric Fiselier 2017-04-15 12:05:11 +00:00
parent 1f8b84094f
commit 2f121a722c
1 changed files with 1 additions and 7 deletions

View File

@ -99,13 +99,7 @@ template <class IncompleteT = IncompleteType,
class Del = std::default_delete<IncompleteT>, class... Args>
void doIncompleteTypeTest(int expect_alive, Args&&... ctor_args) {
using ValueT = typename std::remove_all_extents<IncompleteT>::type;
if (expect_alive == 0)
checkNumIncompleteTypeAlive(0);
else
checkNumIncompleteTypeAlive(expect_alive);
checkNumIncompleteTypeAlive(expect_alive);
{
StoresIncomplete<IncompleteT, Del> sptr(std::forward<Args>(ctor_args)...);
checkNumIncompleteTypeAlive(expect_alive);