summaryrefslogtreecommitdiffstats
path: root/include/llvm/Argument.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/Argument.h
parentb819a2b5fef660298b4f38ce951dd7f679f66b4f (diff)
downloadexternal_llvm-423c2260f95883f7c84ac962e58ac66c3a11efac.zip
external_llvm-423c2260f95883f7c84ac962e58ac66c3a11efac.tar.gz
external_llvm-423c2260f95883f7c84ac962e58ac66c3a11efac.tar.bz2
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/Argument.h')
-rw-r--r--include/llvm/Argument.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Argument.h b/include/llvm/Argument.h
index 1d92066..8776a48 100644
--- a/include/llvm/Argument.h
+++ b/include/llvm/Argument.h
@@ -41,7 +41,9 @@ public:
/// Argument ctor - If Function argument is specified, this argument is
/// inserted at the end of the argument list for the function.
///
- Argument(const Type *Ty, const std::string &Name = "", Function *F = 0);
+ explicit Argument(const Type *Ty,
+ const std::string &Name = "",
+ Function *F = 0);
inline const Function *getParent() const { return Parent; }
inline Function *getParent() { return Parent; }