[llvm] r300119 - [IR] Make AttributeSet constructor from AttributeSetNode* explicit
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 12 15:30:37 PDT 2017
Author: rnk
Date: Wed Apr 12 17:30:37 2017
New Revision: 300119
URL: http://llvm.org/viewvc/llvm-project?rev=300119&view=rev
Log:
[IR] Make AttributeSet constructor from AttributeSetNode* explicit
Modified:
llvm/trunk/include/llvm/IR/Attributes.h
Modified: llvm/trunk/include/llvm/IR/Attributes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Attributes.h?rev=300119&r1=300118&r2=300119&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Attributes.h (original)
+++ llvm/trunk/include/llvm/IR/Attributes.h Wed Apr 12 17:30:37 2017
@@ -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.
More information about the llvm-commits
mailing list