[llvm] [llvm/IR] Fix module build issue following e57308b063bb (NFC) (PR #94580)
Med Ismail Bennani via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 6 10:49:28 PDT 2024
https://github.com/medismailben updated https://github.com/llvm/llvm-project/pull/94580
>From d00685b3e731c2295e63e17ba5c2a06944eeb299 Mon Sep 17 00:00:00 2001
From: Med Ismail Bennani <ismail at bennani.ma>
Date: Wed, 5 Jun 2024 23:34:00 -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/IRBuilderFolder.h` which 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/IRBuilderFolder.h | 1 +
1 file changed, 1 insertion(+)
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