github-actions[bot] wrote: <!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning: <details> <summary> You can test this locally with the following command: </summary> ``````````bash git-clang-format --diff 4ab9c13ba2a6f505fb1b72ae33753902ae9f81e8 86deca6179c6dce4490e859ffd536f553d8d6c0d --extensions h,cpp -- clang/lib/CodeGen/CGBuiltin.cpp clang/lib/CodeGen/CodeGenModule.h `````````` </details> <details> <summary> View the diff from clang-format here. </summary> ``````````diff diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp index 6a0497df7a..4f491c8503 100644 --- a/clang/lib/CodeGen/CGBuiltin.cpp +++ b/clang/lib/CodeGen/CGBuiltin.cpp @@ -265,7 +265,8 @@ llvm::Constant *CodeGenModule::getDeviceLibFunction(const FunctionDecl *FD, llvm::SmallString<64> Name; if (getTarget().getTriple().isAMDGCN()) { switch (BuiltinID) { - default: return nullptr; + default: + return nullptr; case Builtin::BIlogb: case Builtin::BI__builtin_logb: Name = "__ocml_logb_f64"; @@ -275,8 +276,8 @@ llvm::Constant *CodeGenModule::getDeviceLibFunction(const FunctionDecl *FD, return nullptr; llvm::FunctionType *Ty = - cast<llvm::FunctionType>(getTypes().ConvertType(FD->getType())); - return GetOrCreateLLVMFunction(Name, Ty, D, /*ForVTable*/false); + cast<llvm::FunctionType>(getTypes().ConvertType(FD->getType())); + return GetOrCreateLLVMFunction(Name, Ty, D, /*ForVTable*/ false); } /// getBuiltinLibFunction - Given a builtin id for a function like @@ -20849,8 +20850,7 @@ Value *CodeGenFunction::EmitAMDGPUBuiltinExpr(unsigned BuiltinID, case Builtin::BIscalbn: case Builtin::BI__builtin_scalbn: return emitBinaryExpMaybeConstrainedFPBuiltin( - *this, E, Intrinsic::ldexp, - Intrinsic::experimental_constrained_ldexp); + *this, E, Intrinsic::ldexp, Intrinsic::experimental_constrained_ldexp); default: return nullptr; } `````````` </details> https://github.com/llvm/llvm-project/pull/129347 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits