Skip to content

Commit

Permalink
XXX: Use interface argument for typeswitch. This should break on the …
Browse files Browse the repository at this point in the history
…current version of LLVM/MLIR.

Signed-off-by: Ingo Müller <[email protected]>
  • Loading branch information
ingomueller-net committed Jul 10, 2024
1 parent 71fa7ed commit 7c1942c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Target/SubstraitPB/Export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ FailureOr<std::unique_ptr<Rel>> exportOperation(EmitOp op) {

FailureOr<std::unique_ptr<Expression>>
exportOperation(ExpressionOpInterface op) {
return llvm::TypeSwitch<Operation *, FailureOr<std::unique_ptr<Expression>>>(
op)
return llvm::TypeSwitch<ExpressionOpInterface,
FailureOr<std::unique_ptr<Expression>>>(op)
.Case<FieldReferenceOp, LiteralOp>([&](auto op) {
llvm::errs() << __PRETTY_FUNCTION__ << "\n";
op.dump();
Expand Down

0 comments on commit 7c1942c

Please sign in to comment.