[llvm] 851332a - Fix linking error, undefined class static constants.

Hongtao Yu via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 9 10:02:04 PST 2022


Author: Benoit Jacob
Date: 2022-03-09T10:01:38-08:00
New Revision: 851332a1f20b3868e87fb781bdb6de6258a0a017

URL: https://github.com/llvm/llvm-project/commit/851332a1f20b3868e87fb781bdb6de6258a0a017
DIFF: https://github.com/llvm/llvm-project/commit/851332a1f20b3868e87fb781bdb6de6258a0a017.diff

LOG: Fix linking error, undefined class static constants.

Reviewed By: spupyrev

Differential Revision: https://reviews.llvm.org/D121293

Added: 
    

Modified: 
    llvm/lib/Transforms/Utils/SampleProfileInference.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Utils/SampleProfileInference.cpp b/llvm/lib/Transforms/Utils/SampleProfileInference.cpp
index 6f56f1c432c2e..2f863b17732f2 100644
--- a/llvm/lib/Transforms/Utils/SampleProfileInference.cpp
+++ b/llvm/lib/Transforms/Utils/SampleProfileInference.cpp
@@ -572,6 +572,9 @@ class MinCostMaxFlow {
   std::vector<std::vector<Edge *>> AugmentingEdges;
 };
 
+constexpr int64_t MinCostMaxFlow::AuxCostUnlikely;
+constexpr uint64_t MinCostMaxFlow::MinBaseDistance;
+
 /// A post-processing adjustment of control flow. It applies two steps by
 /// rerouting some flow and making it more realistic:
 ///


        


More information about the llvm-commits mailing list