aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Module.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/Module.h
parentb819a2b5fef660298b4f38ce951dd7f679f66b4f (diff)
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/Module.h')
-rw-r--r--include/llvm/Module.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h
index 560554e3d0..3d68e736bf 100644
--- a/include/llvm/Module.h
+++ b/include/llvm/Module.h
@@ -104,7 +104,7 @@ private:
public:
/// The Module constructor. Note that there is no default constructor. You
/// must provide a name for the module upon construction.
- Module(const std::string &ModuleID);
+ explicit Module(const std::string &ModuleID);
/// The module destructor. This will dropAllReferences.
~Module();