aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-07-07 18:00:37 +0000
committerDan Gohman <gohman@apple.com>2008-07-07 18:00:37 +0000
commite887fdff72486ad0e83f402c8c105fa91fff1036 (patch)
tree73e3b798b99c400100672ea206ea1db8eb84af5a /lib/VMCore
parent775977b3450a99de8bcb039de2dcc55d614ac176 (diff)
downloadexternal_llvm-e887fdff72486ad0e83f402c8c105fa91fff1036.zip
external_llvm-e887fdff72486ad0e83f402c8c105fa91fff1036.tar.gz
external_llvm-e887fdff72486ad0e83f402c8c105fa91fff1036.tar.bz2
Add explicit keywords.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53179 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/LeakDetector.cpp2
-rw-r--r--lib/VMCore/Type.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/LeakDetector.cpp b/lib/VMCore/LeakDetector.cpp
index 9f3584e..4ad75b7 100644
--- a/lib/VMCore/LeakDetector.cpp
+++ b/lib/VMCore/LeakDetector.cpp
@@ -31,7 +31,7 @@ namespace {
template <typename T>
struct VISIBILITY_HIDDEN LeakDetectorImpl {
- LeakDetectorImpl(const char* const name) : Cache(0), Name(name) { }
+ explicit LeakDetectorImpl(const char* const name) : Cache(0), Name(name) { }
// Because the most common usage pattern, by far, is to add a
// garbage object, then remove it immediately, we optimize this
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp
index f172130..90258ed 100644
--- a/lib/VMCore/Type.cpp
+++ b/lib/VMCore/Type.cpp
@@ -431,7 +431,7 @@ const Type *Type::LabelTy = new Type(Type::LabelTyID);
namespace {
struct BuiltinIntegerType : public IntegerType {
- BuiltinIntegerType(unsigned W) : IntegerType(W) {}
+ explicit BuiltinIntegerType(unsigned W) : IntegerType(W) {}
};
}
const IntegerType *Type::Int1Ty = new BuiltinIntegerType(1);