projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
377e247
)
Use void() to create a void expression type
author
Eric Fiselier
<eric@efcs.ca>
Sat, 7 Apr 2018 04:28:11 +0000
(
04:28
+0000)
committer
Eric Fiselier
<eric@efcs.ca>
Sat, 7 Apr 2018 04:28:11 +0000
(
04:28
+0000)
llvm-svn: 329484
libcxx/include/compare
patch
|
blob
|
history
diff --git
a/libcxx/include/compare
b/libcxx/include/compare
index
fd4d7f5
..
17fc6ff
100644
(file)
--- a/
libcxx/include/compare
+++ b/
libcxx/include/compare
@@
-639,7
+639,7
@@
constexpr auto __get_comp_type() {
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)