]> granicus.if.org Git - llvm/commitdiff
[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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300119 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/Attributes.h

index 457682b9b2e72facddeaee1842d8c644823942e8..56f0f7715fe53aede584b5728fcad9aea4bc7d3d 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.