[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:35:09 PDT 2024


https://github.com/medismailben updated https://github.com/llvm/llvm-project/pull/94580

>From 05b6fe07343d1720d732fd13857821695b254b0c 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