Skip to content

Commit

Permalink
fix compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
dshaaban01 committed Jan 21, 2025
1 parent 336b68d commit b95f346
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 @@ -253,7 +253,7 @@ SubstraitExporter::exportType(Location loc, mlir::Type mlirType) {
}

// Handle date.
if (mlirType.isa<DateType>()) {
if (mlir::isa<DateType>(mlirType)) {
// TODO(ingomueller): support other nullability modes.
auto dateType = std::make_unique<proto::Type::Date>();
dateType->set_nullability(
Expand Down Expand Up @@ -657,7 +657,7 @@ SubstraitExporter::exportOperation(LiteralOp op) {
}
// `DateType`.
else if (auto dateType = dyn_cast<DateType>(literalType)) {
literal->set_date(value.cast<DateAttr>().getValue());
literal->set_date(mlir::cast<DateAttr>(value).getValue());
} else
op->emitOpError("has unsupported value");

Expand Down

0 comments on commit b95f346

Please sign in to comment.