summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/IR/Metadata.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm/IR/Metadata.h b/llvm/include/llvm/IR/Metadata.h
index 133e8c4777f..0e22e6bc6f1 100644
--- a/llvm/include/llvm/IR/Metadata.h
+++ b/llvm/include/llvm/IR/Metadata.h
@@ -1079,10 +1079,10 @@ public:
template <class U>
explicit MDTupleTypedArrayWrapper(
- const U &Tuple,
- typename std::enable_if<
- std::is_constructible<const MDTuple *, U>::value>::type * = nullptr)
- : N(Tuple) {}
+ const MDTupleTypedArrayWrapper<U> &Other,
+ typename std::enable_if<!std::is_convertible<U *, T *>::value>::type * =
+ nullptr)
+ : N(Other.get()) {}
explicit operator bool() const { return get(); }
explicit operator MDTuple *() const { return get(); }
OpenPOWER on IntegriCloud