Use void() to create a void expression type

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@329484 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/compare b/include/compare
index fd4d7f5..17fc6ff 100644
--- a/include/compare
+++ b/include/compare
@@ -639,7 +639,7 @@
   constexpr _CCC _Cat = sizeof...(_Ts) == 0 ? _StrongOrd
       : __compute_comp_type(__type_kinds);
   if constexpr (_Cat == _None)
-    return ((void)0);
+    return void();
   else if constexpr (_Cat == _WeakEq)
     return weak_equality::equivalent;
   else if constexpr (_Cat == _StrongEq)