ldc/ldc-1.32.2-llvm-16-update_to_ir_include.patch

26 lines
788 B
Diff

From 815684cd36cc438c7b0ebfea672abdd107dd7c96 Mon Sep 17 00:00:00 2001
From: Ikey Doherty <ikey@serpentos.com>
Date: Mon, 22 May 2023 08:40:52 +0100
Subject: [PATCH] gen/runtime: Use the correct header path for ModRef
In stable LLVM 16 this is now under `Support` and not `IR`
Signed-off-by: Ikey Doherty <ikey@serpentos.com>
---
gen/runtime.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gen/runtime.cpp b/gen/runtime.cpp
index 37cd6dc741..c2040341f2 100644
--- a/gen/runtime.cpp
+++ b/gen/runtime.cpp
@@ -33,7 +33,7 @@
#include "llvm/Bitcode/BitcodeWriter.h"
#include "llvm/IR/Attributes.h"
#if LDC_LLVM_VER >= 1600
-#include "llvm/IR/ModRef.h"
+#include "llvm/Support/ModRef.h"
#endif
#include "llvm/IR/Module.h"
#include "llvm/Support/CommandLine.h"