[llvm] [modules] Fix warning: missing submodule 'LLVM_IR.FunctionProperties' (PR #181888)
Kai Nacke via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 17 11:43:10 PST 2026
https://github.com/redstar created https://github.com/llvm/llvm-project/pull/181888
When compiling LLVM with LLVM_ENABLE_MODULES=ON, I get the warning
```
warning: missing submodule 'LLVM_IR.FunctionProperties' [-Wincomplete-umbrella]
```
Fix is to add file `FunctionProperties.def` to the module map.
>From d3fde74a335ced506799803cc85c7fbbd1955580 Mon Sep 17 00:00:00 2001
From: Kai Nacke <kai.peter.nacke at ibm.com>
Date: Tue, 17 Feb 2026 14:34:09 -0500
Subject: [PATCH] [modules] Fix warning: missing submodule
'LLVM_IR.FunctionProperties'
When compiling LLVM with LLVM_ENABLE_MODULES=ON, I get the warning
```
warning: missing submodule 'LLVM_IR.FunctionProperties' [-Wincomplete-umbrella]
```
Fix is to add file `FunctionProperties.def` to the module map.
---
llvm/include/module.modulemap | 1 +
1 file changed, 1 insertion(+)
diff --git a/llvm/include/module.modulemap b/llvm/include/module.modulemap
index 48b4622232ff9..9ce07f43f6e10 100644
--- a/llvm/include/module.modulemap
+++ b/llvm/include/module.modulemap
@@ -276,6 +276,7 @@ module LLVM_IR {
// These are intended for (repeated) textual inclusion.
textual header "llvm/IR/ConstrainedOps.def"
textual header "llvm/IR/DebugInfoFlags.def"
+ textual header "llvm/IR/FunctionProperties.def"
textual header "llvm/IR/Instruction.def"
textual header "llvm/IR/Metadata.def"
textual header "llvm/IR/FixedMetadataKinds.def"
More information about the llvm-commits
mailing list