[llvm] r264744 - Make InlineSimple's one-arg constructor explicit. NFC

Justin Lebar via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 29 09:26:06 PDT 2016


Author: jlebar
Date: Tue Mar 29 11:26:06 2016
New Revision: 264744

URL: http://llvm.org/viewvc/llvm-project?rev=264744&view=rev
Log:
Make InlineSimple's one-arg constructor explicit. NFC

Modified:
    llvm/trunk/lib/Transforms/IPO/InlineSimple.cpp

Modified: llvm/trunk/lib/Transforms/IPO/InlineSimple.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/InlineSimple.cpp?rev=264744&r1=264743&r2=264744&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/InlineSimple.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/InlineSimple.cpp Tue Mar 29 11:26:06 2016
@@ -50,7 +50,8 @@ public:
     initializeSimpleInlinerPass(*PassRegistry::getPassRegistry());
   }
 
-  SimpleInliner(int Threshold) : Inliner(ID), DefaultThreshold(Threshold) {
+  explicit SimpleInliner(int Threshold)
+      : Inliner(ID), DefaultThreshold(Threshold) {
     initializeSimpleInlinerPass(*PassRegistry::getPassRegistry());
   }
 




More information about the llvm-commits mailing list