[IR] Make AttributeSet constructor from AttributeSetNode* explicit
authorReid Kleckner <rnk@google.com>
Wed, 12 Apr 2017 22:30:37 +0000 (22:30 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 12 Apr 2017 22:30:37 +0000 (22:30 +0000)
llvm-svn: 300119

llvm/include/llvm/IR/Attributes.h

index 457682b..56f0f77 100644 (file)
@@ -213,7 +213,7 @@ class AttributeSet {
   template <typename Ty> friend struct DenseMapInfo;
 
 private:
-  AttributeSet(AttributeSetNode *ASN) : SetNode(ASN) {}
+  explicit AttributeSet(AttributeSetNode *ASN) : SetNode(ASN) {}
 
 public:
   /// AttributeSet is a trivially copyable value type.