[llvm] [llvm/IR] Fix module build issue following e57308b063bb (NFC) (PR #94580)
Med Ismail Bennani via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 5 23:16:13 PDT 2024
https://github.com/medismailben updated https://github.com/llvm/llvm-project/pull/94580
>From a4e21ecf66bb2d998b2bf0ba6d02204b82917216 Mon Sep 17 00:00:00 2001
From: Med Ismail Bennani <ismail at bennani.ma>
Date: Wed, 5 Jun 2024 23:14:08 -0700
Subject: [PATCH] [llvm/IR] Fix module build issue following e57308b063bb (NFC)
This patch fixes a build issue following e57308b063bb when enabling
module build.
With that change, we failed to build the LLVM_IR module since
GEPNoWrapFlags wasn't defined prior to using it.
This patch addressed that issue by including the missing header in
`llvm/IR/{ConstantFolder.h,IRBuilderFolder.h}` which both uses the
`GEPNoWrapFlags` type. This should ensure that we can always build the
LLVM_IR module.
Signed-off-by: Med Ismail Bennani <ismail at bennani.ma>
---
llvm/include/llvm/IR/ConstantFolder.h | 1 +
llvm/include/llvm/IR/IRBuilderFolder.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/llvm/include/llvm/IR/ConstantFolder.h b/llvm/include/llvm/IR/ConstantFolder.h
index a75cdf97f6ed3..5b0020958afb6 100644
--- a/llvm/include/llvm/IR/ConstantFolder.h
+++ b/llvm/include/llvm/IR/ConstantFolder.h
@@ -20,6 +20,7 @@
#include "llvm/ADT/STLExtras.h"
#include "llvm/IR/ConstantFold.h"
#include "llvm/IR/Constants.h"
+#include "llvm/IR/GEPNoWrapFlags.h"
#include "llvm/IR/IRBuilderFolder.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IR/Operator.h"
diff --git a/llvm/include/llvm/IR/IRBuilderFolder.h b/llvm/include/llvm/IR/IRBuilderFolder.h
index 3c42eb2cf2a5a..921001c8a5d51 100644
--- a/llvm/include/llvm/IR/IRBuilderFolder.h
+++ b/llvm/include/llvm/IR/IRBuilderFolder.h
@@ -15,6 +15,7 @@
#define LLVM_IR_IRBUILDERFOLDER_H
#include "llvm/ADT/ArrayRef.h"
+#include "llvm/IR/GEPNoWrapFlags.h"
#include "llvm/IR/InstrTypes.h"
#include "llvm/IR/Instruction.h"
More information about the llvm-commits
mailing list