From: Reid Kleckner Date: Wed, 12 Apr 2017 22:30:37 +0000 (+0000) Subject: [IR] Make AttributeSet constructor from AttributeSetNode* explicit X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f31bea8f808dbaa9d11cab2c7005bf821f1acfe0;p=llvm [IR] Make AttributeSet constructor from AttributeSetNode* explicit git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300119 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h index 457682b9b2e..56f0f7715fe 100644 --- a/include/llvm/IR/Attributes.h +++ b/include/llvm/IR/Attributes.h @@ -213,7 +213,7 @@ class AttributeSet { template friend struct DenseMapInfo; private: - AttributeSet(AttributeSetNode *ASN) : SetNode(ASN) {} + explicit AttributeSet(AttributeSetNode *ASN) : SetNode(ASN) {} public: /// AttributeSet is a trivially copyable value type.