[Mlir-commits] [mlir] 9164d20 - [MLIR] Missing declaration build fix
Michael Kruse
llvmlistbot at llvm.org
Wed Jul 30 05:15:03 PDT 2025
Author: Michael Kruse
Date: 2025-07-30T14:13:55+02:00
New Revision: 9164d206b33d61c93f5fc4628797485f96d654ca
URL: https://github.com/llvm/llvm-project/commit/9164d206b33d61c93f5fc4628797485f96d654ca
DIFF: https://github.com/llvm/llvm-project/commit/9164d206b33d61c93f5fc4628797485f96d654ca.diff
LOG: [MLIR] Missing declaration build fix
The sanizer bots are reporting a missing declaration:
```
In file included from /home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/mlir/lib/Dialect/LLVMIR/Transforms/InlinerInterfaceImpl.cpp:17:
In file included from /home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/mlir/include/mlir/Dialect/LLVMIR/NVVMDialect.h:26:
/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h:318:34: error: no type named 'CallBase' in namespace 'llvm'
318 | llvm::CallBase *call,
| ~~~~~~^
1 error generated.
```
https://lab.llvm.org/buildbot/#/builders/94/builds/9340
https://lab.llvm.org/buildbot/#/builders/24/builds/11029
https://lab.llvm.org/buildbot/#/builders/169/builds/13454
https://lab.llvm.org/buildbot/#/builders/25/builds/10250
PR #151302 removed some indirect header #includes which had to be
includes explicitly. I do not know why this particular error only occurs
with the sanitizer buildbots.
Fix by adding a forward declaration.
Added:
Modified:
mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h b/mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
index f0bd5245a7d41..89b5d9461cf91 100644
--- a/mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
+++ b/mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
@@ -30,6 +30,7 @@
namespace llvm {
class BasicBlock;
+class CallBase;
class CanonicalLoopInfo;
class Function;
class IRBuilderBase;
More information about the Mlir-commits
mailing list