diff options
Diffstat (limited to 'llvm/lib/Transforms/IPO/ArgumentPromotion.cpp')
| -rw-r--r-- | llvm/lib/Transforms/IPO/ArgumentPromotion.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp index 183e1a1e0a4..b562c425aa6 100644 --- a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp +++ b/llvm/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; | 

