aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SafeStack.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-03-08 14:34:53 -0800
committerFangrui Song <i@maskray.me>2022-03-08 14:34:53 -0800
commit48c74bb2e2a72830f1068823bfc2f6fd4b53d427 (patch)
tree9dd5990f72b7cca686c4db0b4a5ca0d493e20af4 /llvm/lib/CodeGen/SafeStack.cpp
parent12bfea58b8ffc141c4440af998dc8ee1b309dbe4 (diff)
downloadllvm-48c74bb2e2a72830f1068823bfc2f6fd4b53d427.zip
llvm-48c74bb2e2a72830f1068823bfc2f6fd4b53d427.tar.gz
llvm-48c74bb2e2a72830f1068823bfc2f6fd4b53d427.tar.bz2
[SampleProfileInference] Work around odr-use of const non-inline static data member to fix -O0 builds after D120508
MinBaseDistance may be odr-used by std::max, leading to an undefined symbol linker error: ``` ld.lld: error: undefined symbol: (anonymous namespace)::MinCostMaxFlow::MinBaseDistance >>> referenced by SampleProfileInference.cpp:744 (/home/ray/llvm-project/llvm/lib/Transforms/Utils/SampleProfileInference.cpp:744) >>> lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/SampleProfileInference.cpp.o:((anonymous namespace)::FlowAdjuster::jumpDistance(llvm::FlowJump*) const) ``` Since llvm-project is still using C++ 14, workaround it with a cast.
Diffstat (limited to 'llvm/lib/CodeGen/SafeStack.cpp')
0 files changed, 0 insertions, 0 deletions