aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/IPO/ArgumentPromotion.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-02-18 16:37:45 +0000
committerDan Gohman <gohman@apple.com>2009-02-18 16:37:45 +0000
commit38deef9ce58b33dba34515f23fb7dbde02164c77 (patch)
tree572289f6ed7b7d2bb931e5edd9816d2e723fc787 /lib/Transforms/IPO/ArgumentPromotion.cpp
parentd6b7a242d345fd79a337afd384bb586c5619cfe7 (diff)
downloadexternal_llvm-38deef9ce58b33dba34515f23fb7dbde02164c77.zip
external_llvm-38deef9ce58b33dba34515f23fb7dbde02164c77.tar.gz
external_llvm-38deef9ce58b33dba34515f23fb7dbde02164c77.tar.bz2
Add explicit keywords.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64915 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/ArgumentPromotion.cpp')
-rw-r--r--lib/Transforms/IPO/ArgumentPromotion.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/ArgumentPromotion.cpp b/lib/Transforms/IPO/ArgumentPromotion.cpp
index 183e1a1..b562c42 100644
--- a/lib/Transforms/IPO/ArgumentPromotion.cpp
+++ b/lib/Transforms/IPO/ArgumentPromotion.cpp
@@ -66,8 +66,8 @@ namespace {
virtual bool runOnSCC(const std::vector<CallGraphNode *> &SCC);
static char ID; // Pass identification, replacement for typeid
- ArgPromotion(unsigned maxElements = 3) : CallGraphSCCPass(&ID),
- maxElements(maxElements) {}
+ explicit ArgPromotion(unsigned maxElements = 3)
+ : CallGraphSCCPass(&ID), maxElements(maxElements) {}
/// A vector used to hold the indices of a single GEP instruction
typedef std::vector<uint64_t> IndicesVector;