[llvm] 4985f25 - [IR] Fix IWYU violation (#93918)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 30 23:19:49 PDT 2024
Author: Cyndy Ishida
Date: 2024-05-30T23:19:46-07:00
New Revision: 4985f25ffcc4735c36967fcdbd5d46e009b25827
URL: https://github.com/llvm/llvm-project/commit/4985f25ffcc4735c36967fcdbd5d46e009b25827
DIFF: https://github.com/llvm/llvm-project/commit/4985f25ffcc4735c36967fcdbd5d46e009b25827.diff
LOG: [IR] Fix IWYU violation (#93918)
GEPNoWrapFlags.h calls `assert` creating a undeclared identifier error
when running an Apple-stage2 build with LLVM_ENABLE_MODULES enabled.
resolves: rdar://129031201
Added:
Modified:
llvm/include/llvm/IR/GEPNoWrapFlags.h
Removed:
################################################################################
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.
More information about the llvm-commits
mailing list