Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
Laity000 committed May 16, 2024
1 parent 6403290 commit fc8b698
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion clang/include/clang/CIR/Dialect/Builder/CIRBaseBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,8 @@ class CIRBaseBuilderTy : public mlir::OpBuilder {
}

mlir::TypedAttr getConstPtrAttr(mlir::Type t, int64_t v) {
auto val = mlir::IntegerAttr::get(mlir::IntegerType::get(t.getContext(), 64), v);
auto val =
mlir::IntegerAttr::get(mlir::IntegerType::get(t.getContext(), 64), v);
return mlir::cir::ConstPtrAttr::get(getContext(),
t.cast<mlir::cir::PointerType>(), val);
}
Expand Down
3 changes: 2 additions & 1 deletion clang/lib/CIR/CodeGen/ConstantInitBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ class ConstantAggregateBuilderBase {

/// Add a pointer of a specific type.
void addPointer(mlir::cir::PointerType ptrTy, uint64_t value) {
auto val = mlir::IntegerAttr::get(mlir::IntegerType::get(ptrTy.getContext(), 64), value);
auto val = mlir::IntegerAttr::get(
mlir::IntegerType::get(ptrTy.getContext(), 64), value);
add(mlir::cir::ConstPtrAttr::get(ptrTy.getContext(), ptrTy, val));
}

Expand Down

0 comments on commit fc8b698

Please sign in to comment.