[llvm] r329461 - Fix warning by cl::opt<int> -> cl::opt<unsigned>

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 6 14:41:17 PDT 2018


Author: vitalybuka
Date: Fri Apr  6 14:41:17 2018
New Revision: 329461

URL: http://llvm.org/viewvc/llvm-project?rev=329461&view=rev
Log:
Fix warning by cl::opt<int> -> cl::opt<unsigned>

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

Modified: llvm/trunk/lib/Transforms/IPO/WholeProgramDevirt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/WholeProgramDevirt.cpp?rev=329461&r1=329460&r2=329461&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/WholeProgramDevirt.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/WholeProgramDevirt.cpp Fri Apr  6 14:41:17 2018
@@ -111,10 +111,11 @@ static cl::opt<std::string> ClWriteSumma
     cl::desc("Write summary to given YAML file after running pass"),
     cl::Hidden);
 
-static cl::opt<int> ClThreshold("wholeprogramdevirt-branch-funnel-threshold",
-                                cl::Hidden, cl::init(10), cl::ZeroOrMore,
-                                cl::desc("Maximum number of call targets per "
-                                         "call site to enable branch funnels"));
+static cl::opt<unsigned>
+    ClThreshold("wholeprogramdevirt-branch-funnel-threshold", cl::Hidden,
+                cl::init(10), cl::ZeroOrMore,
+                cl::desc("Maximum number of call targets per "
+                         "call site to enable branch funnels"));
 
 // Find the minimum offset that we may store a value of size Size bits at. If
 // IsAfter is set, look for an offset before the object, otherwise look for an




More information about the llvm-commits mailing list