Skip to content

Commit

Permalink
clangy
Browse files Browse the repository at this point in the history
  • Loading branch information
dshaaban01 committed Dec 27, 2024
1 parent 1c64bb1 commit 5fa3164
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Target/SubstraitPB/Export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ SubstraitExporter::exportOperation(LiteralOp op) {
default:
op->emitOpError("has integer value with unsupported width");
}
} // `BinaryType`.
} // `BinaryType`.
else if (auto binaryType = dyn_cast<BinaryType>(literalType)) {
ArrayRef<uint8_t> ref = value.cast<BinaryAttr>().getValue();
literal->set_binary(std::string(ref.begin(), ref.end()));
Expand Down
5 changes: 4 additions & 1 deletion lib/Target/SubstraitPB/Import.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,10 @@ importLiteral(ImplicitLocOpBuilder builder,
return builder.create<LiteralOp>(attr);
}
case Expression::Literal::LiteralTypeCase::kBinary: {
auto attr = BinaryAttr::get(context, ArrayRef<uint8_t>(reinterpret_cast<const uint8_t*>(message.binary().data()), message.binary().size()));
auto attr = BinaryAttr::get(
context, ArrayRef<uint8_t>(
reinterpret_cast<const uint8_t *>(message.binary().data()),
message.binary().size()));
return builder.create<LiteralOp>(attr);
}
default: {
Expand Down

0 comments on commit 5fa3164

Please sign in to comment.