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:
dc9c3d1
)
[flang] Fix comment
author
peter klausler
<pklausler@nvidia.com>
Mon, 8 Apr 2019 19:31:57 +0000
(12:31 -0700)
committer
peter klausler
<pklausler@nvidia.com>
Mon, 8 Apr 2019 21:29:46 +0000
(14:29 -0700)
Original-commit: flang-compiler/f18@
d1345ca4fc45ee7445b211942b4c9cfef847b3fb
Reviewed-on: https://github.com/flang-compiler/f18/pull/390
Tree-same-pre-rewrite: false
flang/lib/common/idioms.h
patch
|
blob
|
history
diff --git
a/flang/lib/common/idioms.h
b/flang/lib/common/idioms.h
index
31f8854
..
c72b2b9
100644
(file)
--- a/
flang/lib/common/idioms.h
+++ b/
flang/lib/common/idioms.h
@@
-139,7
+139,7
@@
template<typename A> A Clone(const A &x) { return x; }
// Use when declaring functions with rvalue template arguments to dodge
// confusing C++ reference forwarding semantics, e.g.
-// template<typename A, NO_LVALUE_REFERENCE(A)> void foo(A &&);
+// template<typename A, NO
T
_LVALUE_REFERENCE(A)> void foo(A &&);
// Works on parameter packs as well.
#define NOT_LVALUE_REFERENCE(X) bool = !std::is_lvalue_reference_v<X>
#define NO_LVALUE_REFERENCE(X) bool = (... && !std::is_lvalue_reference_v<X>)