[clang] [llvm] Singleton hack of fixing static initialisation order ficaso (PR #154541)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 20 15:54:46 PDT 2025
================
@@ -160,7 +160,7 @@ inlineCostFeatureToMlFeature(InlineCostFeatureIndex Feature) {
return static_cast<FeatureIndex>(static_cast<size_t>(Feature));
}
-LLVM_ABI extern std::vector<TensorSpec> FeatureMap;
+LLVM_ABI extern std::vector<TensorSpec> &getFeatureMap();
----------------
efriedma-quic wrote:
```suggestion
LLVM_ABI extern const std::vector<TensorSpec> &getFeatureMap();
```
https://github.com/llvm/llvm-project/pull/154541
More information about the llvm-commits
mailing list