[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
================
@@ -30,18 +30,18 @@ constexpr StringRef AssumptionAttrKey = "llvm.assume";
/// A set of known assumption strings that are accepted without warning and
/// which can be recommended as typo correction.
-LLVM_ABI extern StringSet<> KnownAssumptionStrings;
+LLVM_ABI extern StringSet<> &getKnownAssumptionStrings();
----------------
efriedma-quic wrote:
```suggestion
LLVM_ABI extern const StringSet<> &getKnownAssumptionStrings();
```
https://github.com/llvm/llvm-project/pull/154541
More information about the llvm-commits
mailing list