[llvm] [IR] Fix IWYU violation (PR #93918)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 30 20:57:09 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-ir
Author: Cyndy Ishida (cyndyishida)
<details>
<summary>Changes</summary>
GEPNoWrapFlags.h calls `assert` creating a undeclared identifier error when running an Apple-stage2 build with LLVM_ENABLE_MODULES enabled.
---
Full diff: https://github.com/llvm/llvm-project/pull/93918.diff
1 Files Affected:
- (modified) llvm/include/llvm/IR/GEPNoWrapFlags.h (+2)
``````````diff
diff --git a/llvm/include/llvm/IR/GEPNoWrapFlags.h b/llvm/include/llvm/IR/GEPNoWrapFlags.h
index feaccc878de0c..4d456cc691032 100644
--- a/llvm/include/llvm/IR/GEPNoWrapFlags.h
+++ b/llvm/include/llvm/IR/GEPNoWrapFlags.h
@@ -13,6 +13,8 @@
#ifndef LLVM_IR_GEPNOWRAPFLAGS_H
#define LLVM_IR_GEPNOWRAPFLAGS_H
+#include <assert.h>
+
namespace llvm {
/// Represents flags for the getelementptr instruction/expression.
``````````
</details>
https://github.com/llvm/llvm-project/pull/93918
More information about the llvm-commits
mailing list