Skip to content

Commit 6815235

Browse files
committed
Fix formatting
1 parent 1ffe43b commit 6815235

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

clang/lib/CIR/CodeGen/CIRGenDecl.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void CIRGenFunction::emitAutoVarAlloca(const VarDecl &d) {
4545
// Create the temp alloca and declare variable using it.
4646
address = createTempAlloca(allocaTy, alignment, loc, d.getName());
4747
declare(address, &d, ty, getLoc(d.getSourceRange()), alignment);
48-
48+
4949
setAddrOfLocalVar(&d, address);
5050
}
5151

@@ -72,7 +72,6 @@ void CIRGenFunction::emitAutoVarCleanups(const clang::VarDecl &d) {
7272
cgm.errorNYI(d.getSourceRange(), "emitAutoVarCleanups: CleanupAttr");
7373
}
7474

75-
7675
/// Emit code and set up symbol table for a variable declaration with auto,
7776
/// register, or no storage class specifier. These turn into simple stack
7877
/// objects, globals depending on target.

clang/lib/CIR/CodeGen/CIRGenExpr.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ mlir::Value CIRGenFunction::emitLoadOfScalar(LValue lvalue,
3838
if (mlir::isa<cir::VoidType>(eltTy))
3939
cgm.errorNYI(loc, "emitLoadOfScalar: void type");
4040

41-
mlir::Value loadOp = builder.CIRBaseBuilderTy::createLoad(getLoc(loc), ptr,
42-
false /*isVolatile*/);
41+
mlir::Value loadOp = builder.CIRBaseBuilderTy::createLoad(
42+
getLoc(loc), ptr, false /*isVolatile*/);
4343

4444
return loadOp;
4545
}
@@ -98,7 +98,8 @@ LValue CIRGenFunction::emitDeclRefLValue(const DeclRefExpr *e) {
9898
}
9999

100100
mlir::Value CIRGenFunction::emitAlloca(StringRef name, mlir::Type ty,
101-
mlir::Location loc, CharUnits alignment) {
101+
mlir::Location loc,
102+
CharUnits alignment) {
102103
mlir::Block *entryBlock = getCurFunctionEntryBlock();
103104

104105
// CIR uses its own alloca address space rather than follow the target data
@@ -122,7 +123,8 @@ mlir::Value CIRGenFunction::emitAlloca(StringRef name, mlir::Type ty,
122123
/// This creates an alloca and inserts it at the current insertion point of the
123124
/// builder.
124125
Address CIRGenFunction::createTempAlloca(mlir::Type ty, CharUnits align,
125-
mlir::Location loc, const Twine &name) {
126+
mlir::Location loc,
127+
const Twine &name) {
126128
mlir::Value alloca = emitAlloca(name.str(), ty, loc, align);
127129
return Address(alloca, ty, align);
128130
}

0 commit comments

Comments
 (0)