[all-commits] [llvm/llvm-project] 5174d0: [llvm] Add back Allocator.h include to RWMutex.cpp.

Florian Hahn via All-commits all-commits at lists.llvm.org
Wed Nov 20 07:01:39 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5174d00365b619b5dcd2a451aaf7d844c36ce04d
      https://github.com/llvm/llvm-project/commit/5174d00365b619b5dcd2a451aaf7d844c36ce04d
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2024-11-20 (Wed, 20 Nov 2024)

  Changed paths:
    M llvm/lib/Support/RWMutex.cpp

  Log Message:
  -----------
  [llvm] Add back Allocator.h include to RWMutex.cpp.

This unbreaks the build on macOS.

Without the include, the build fails with

llvm/lib/Support/RWMutex.cpp:47:36: error: use of undeclared identifier 'safe_malloc'
   47 |
   static_cast<pthread_rwlock_t*>(safe_malloc(sizeof(pthread_rwlock_t)));
         |                                    ^



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list