From f31bea8f808dbaa9d11cab2c7005bf821f1acfe0 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Wed, 12 Apr 2017 22:30:37 +0000 Subject: [PATCH] [IR] Make AttributeSet constructor from AttributeSetNode* explicit git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300119 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/IR/Attributes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.