Silence another occurrence of MSVC's suprious unused warning. Patch from STL@microsoft.com

llvm-svn: 277572
This commit is contained in:
Eric Fiselier 2016-08-03 05:46:36 +00:00
parent 196986ca95
commit 7da93bb154
1 changed files with 4 additions and 1 deletions

View File

@ -291,7 +291,10 @@ public:
template<typename U, typename... Args>
void destroy(U* p)
{ p->~U(); }
{
p->~U();
((void)p); // Prevent MSVC's spurious unused warning
}
};
template<typename T, typename U>