From f595b181adafde4f903cf8c52dab14f7e2c9dc00 Mon Sep 17 00:00:00 2001
From: Martin Kinkelin <mkinkelin@symmetryinvestments.com>
Date: Sun, 2 Jun 2024 20:59:52 +0200
Subject: [PATCH] Bump LDC-LLVM from v18.1.5 to v18.1.6

---
 .cirrus.yml                                   | 2 +-
 .github/workflows/main.yml                    | 4 ++--
 .github/workflows/supported_llvm_versions.yml | 2 +-
 CHANGELOG.md                                  | 1 +
 4 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/.cirrus.yml b/.cirrus.yml
index 52cb886c932..91442b34abb 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -203,7 +203,7 @@ install_ubuntu_prerequisites_template: &INSTALL_UBUNTU_PREREQUISITES_TEMPLATE
 environment:
   CIRRUS_CLONE_DEPTH: 50
   HOST_LDC_VERSION: 1.31.0
-  LLVM_VERSION: 18.1.5
+  LLVM_VERSION: 18.1.6
   GITHUB_TOKEN: ENCRYPTED[0955bd48c8d4e5391446fc0149d0719ad0b63df27ec9e6c180a5730a5b10dc7f28f09d1383423db158d21380ee2b022a]
 
 task:
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 166f00739f1..246028cb714 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -11,7 +11,7 @@ concurrency:
 
 env:
   CLANG_VERSION: 15.0.6
-  LLVM_VERSION: 18.1.5
+  LLVM_VERSION: 18.1.6
 
 jobs:
   build-native:
@@ -101,7 +101,7 @@ jobs:
       - name: Install prerequisites
         uses: ./.github/actions/1-setup
         with:
-          clang_version: ${{ runner.os == 'Windows' && '18.1.5' || env.CLANG_VERSION }}
+          clang_version: ${{ runner.os == 'Windows' && '18.1.6' || env.CLANG_VERSION }}
           llvm_version: ${{ matrix.llvm_version || env.LLVM_VERSION }}
           arch: ${{ matrix.arch }}
       - name: Build bootstrap LDC
diff --git a/.github/workflows/supported_llvm_versions.yml b/.github/workflows/supported_llvm_versions.yml
index 5467403eb38..234c192f92f 100644
--- a/.github/workflows/supported_llvm_versions.yml
+++ b/.github/workflows/supported_llvm_versions.yml
@@ -19,7 +19,7 @@ jobs:
             os: ubuntu-20.04
             host_dc: ldc-1.19.0
             # FIXME: no usable official package available yet
-            llvm_version: https://github.com/ldc-developers/llvm-project/releases/download/ldc-v18.1.5/llvm-18.1.5-linux-x86_64.tar.xz
+            llvm_version: https://github.com/ldc-developers/llvm-project/releases/download/ldc-v18.1.6/llvm-18.1.6-linux-x86_64.tar.xz
             cmake_flags: -DRT_SUPPORT_SANITIZERS=ON
           - job_name: macOS 14, LLVM 17, latest LDC beta
             os: macos-14
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fc8d6ece7af..d6cddeb5fa5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,7 @@
 # LDC master
 
 #### Big news
+- LLVM for prebuilt packages bumped to v18.1.6 (except for macOS arm64). (#4678)
 
 #### Platform support
 - Supports LLVM 15 - 18. Support for LLVM 11 - 14 was dropped. The CLI options `-passmanager` and `-opaque-pointers` were removed.