diff options
author | Xinliang David Li <davidxl@google.com> | 2017-12-10 07:39:53 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2017-12-10 07:39:53 +0000 |
commit | fa3f1a15b210ac57133e37c0b607dcf3731e55bf (patch) | |
tree | 5e1169caefd7ff2dcba219092b3d46bc9e99a4b7 /llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp | |
parent | 7008c6bc03ebeec516908bf02cfd2db3af0e774a (diff) | |
download | bcm5719-llvm-fa3f1a15b210ac57133e37c0b607dcf3731e55bf.tar.gz bcm5719-llvm-fa3f1a15b210ac57133e37c0b607dcf3731e55bf.zip |
[PGO] change arg type to uint64_t to match member field type
llvm-svn: 320285
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp index 47278e19283..7431edbb262 100644 --- a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp +++ b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp @@ -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 |