OSDN Git Service

[PGO] change arg type to uint64_t to match member field type
authorXinliang David Li <davidxl@google.com>
Sun, 10 Dec 2017 07:39:53 +0000 (07:39 +0000)
committerXinliang David Li <davidxl@google.com>
Sun, 10 Dec 2017 07:39:53 +0000 (07:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320285 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Instrumentation/PGOInstrumentation.cpp

index 47278e1..7431edb 100644 (file)
@@ -462,7 +462,7 @@ struct PGOEdge {
   bool Removed = false;
   bool IsCritical = false;
 
-  PGOEdge(const BasicBlock *Src, const BasicBlock *Dest, unsigned W = 1)
+  PGOEdge(const BasicBlock *Src, const BasicBlock *Dest, uint64_t W = 1)
       : SrcBB(Src), DestBB(Dest), Weight(W) {}
 
   // Return the information string of an edge.
@@ -776,7 +776,7 @@ struct PGOUseEdge : public PGOEdge {
   bool CountValid = false;
   uint64_t CountValue = 0;
 
-  PGOUseEdge(const BasicBlock *Src, const BasicBlock *Dest, unsigned W = 1)
+  PGOUseEdge(const BasicBlock *Src, const BasicBlock *Dest, uint64_t W = 1)
       : PGOEdge(Src, Dest, W) {}
 
   // Set edge count value