Skip to content

Commit

Permalink
[NFC][mlir] Run clang-format on file.
Browse files Browse the repository at this point in the history
  • Loading branch information
schweitzpgi committed Mar 18, 2022
1 parent 1c083e6 commit d50298d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
Expand Up @@ -836,8 +836,8 @@ LogicalResult ModuleTranslation::convertOneFunction(LLVMFuncOp func) {
if (!argTy.isa<LLVM::LLVMPointerType>())
return func.emitError(
"llvm.align attribute attached to LLVM non-pointer argument");
llvmArg.addAttrs(
llvm::AttrBuilder(llvmArg.getContext()).addAlignmentAttr(llvm::Align(attr.getInt())));
llvmArg.addAttrs(llvm::AttrBuilder(llvmArg.getContext())
.addAlignmentAttr(llvm::Align(attr.getInt())));
}

if (auto attr = func.getArgAttrOfType<UnitAttr>(argIdx, "llvm.sret")) {
Expand Down Expand Up @@ -865,7 +865,7 @@ LogicalResult ModuleTranslation::convertOneFunction(LLVMFuncOp func) {
return func.emitError(
"llvm.nest attribute attached to LLVM non-pointer argument");
llvmArg.addAttrs(llvm::AttrBuilder(llvmArg.getContext())
.addAttribute(llvm::Attribute::Nest));
.addAttribute(llvm::Attribute::Nest));
}

mapValue(mlirArg, &llvmArg);
Expand Down

0 comments on commit d50298d

Please sign in to comment.