summaryrefslogtreecommitdiff
path: root/include/llvm/Type.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-03-23 18:44:11 +0000
committerDan Gohman <gohman@apple.com>2007-03-23 18:44:11 +0000
commit423c2260f95883f7c84ac962e58ac66c3a11efac (patch)
treea1fe402ee6cad918ac07120290cef96670d64a63 /include/llvm/Type.h
parentb819a2b5fef660298b4f38ce951dd7f679f66b4f (diff)
downloadllvm-423c2260f95883f7c84ac962e58ac66c3a11efac.tar.gz
llvm-423c2260f95883f7c84ac962e58ac66c3a11efac.tar.bz2
llvm-423c2260f95883f7c84ac962e58ac66c3a11efac.tar.xz
Add the 'explicit' keyword to several constructors that accept one
argument that don't appear intended as implicit-conversion operators. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35280 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Type.h')
-rw-r--r--include/llvm/Type.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h
index 880daadfb1..439ac18bf4 100644
--- a/include/llvm/Type.h
+++ b/include/llvm/Type.h
@@ -103,8 +103,8 @@ private:
const Type *getForwardedTypeInternal() const;
protected:
Type(const char *Name, TypeID id);
- Type(TypeID id) : ID(id), Abstract(false), SubclassData(0), RefCount(0),
- ForwardType(0) {}
+ explicit Type(TypeID id) : ID(id), Abstract(false), SubclassData(0),
+ RefCount(0), ForwardType(0) {}
virtual ~Type() {
assert(AbstractTypeUsers.empty());
}