Skip to content

Commit 791a415

Browse files
Meinersburkrishna2803
authored andcommitted
[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 llvm#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.
1 parent 2b49bb2 commit 791a415

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
namespace llvm {
3232
class BasicBlock;
33+
class CallBase;
3334
class CanonicalLoopInfo;
3435
class Function;
3536
class IRBuilderBase;

0 commit comments

Comments
 (0)