forked from OSchip/llvm-project
Silence another occurrence of MSVC's suprious unused warning. Patch from STL@microsoft.com
llvm-svn: 277572
This commit is contained in:
parent
196986ca95
commit
7da93bb154
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue