[BOLT] Move extern "C" out of unnamed namespace (#190282)

GCC 15 changes how it interprets extern "C" in unnamed namespaces and
gives the variable internal linkage.
This commit is contained in:
Harald van Dijk 2026-04-03 09:51:55 +01:00 committed by GitHub
parent d725513e7d
commit 7c1d91c435
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -255,11 +255,11 @@ void *operator new[](size_t Sz, BumpPtrAllocator &A, char C) {
// C++ language weirdness
void operator delete(void *Ptr, BumpPtrAllocator &A) { A.deallocate(Ptr); }
namespace {
// Disable instrumentation optimizations that sacrifice profile accuracy
extern "C" bool __bolt_instr_conservative;
namespace {
/// Basic key-val atom stored in our hash
struct SimpleHashTableEntryBase {
uint64_t Key;