Skip to content

Commit 948d5e7

Browse files
formatting
1 parent 185d4f4 commit 948d5e7

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,6 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl &gd, unsigned builtinID,
567567
std::string("unimplemented builtin call: ") +
568568
getContext().BuiltinInfo.getName(builtinID));
569569
return getUndefRValue(e->getType());
570-
571570
}
572571

573572
static mlir::Value emitTargetArchBuiltinExpr(CIRGenFunction *cgf,

clang/lib/CIR/CodeGen/CIRGenExpr.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2006,7 +2006,6 @@ RValue CIRGenFunction::emitCallExpr(const clang::CallExpr *e,
20062006
return emitCall(e->getCallee()->getType(), callee, e, returnValue);
20072007
}
20082008

2009-
20102009
/// Emit code to compute the specified expression, ignoring the result.
20112010
void CIRGenFunction::emitIgnoredExpr(const Expr *e) {
20122011
if (e->isPRValue()) {

clang/lib/CIR/CodeGen/CIRGenExprCXX.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -611,16 +611,17 @@ static RValue emitNewDeleteCall(CIRGenFunction &cgf,
611611
}
612612

613613
RValue CIRGenFunction::emitNewOrDeleteBuiltinCall(const FunctionProtoType *type,
614-
const CallExpr *callExpr,
615-
bool isDelete) {
614+
const CallExpr *callExpr,
615+
bool isDelete) {
616616
CallArgList args;
617617
emitCallArgs(args, type, callExpr->arguments());
618618
// Find the allocation or deallocation function that we're calling.
619619
ASTContext &astContext = getContext();
620620
DeclarationName name = astContext.DeclarationNames.getCXXOperatorName(
621621
isDelete ? OO_Delete : OO_New);
622622

623-
clang::DeclContextLookupResult lookupResult = astContext.getTranslationUnitDecl()->lookup(name);
623+
clang::DeclContextLookupResult lookupResult =
624+
astContext.getTranslationUnitDecl()->lookup(name);
624625
for (const auto *decl : lookupResult) {
625626
if (const auto *funcDecl = dyn_cast<FunctionDecl>(decl)) {
626627
if (astContext.hasSameType(funcDecl->getType(), QualType(type, 0))) {

clang/lib/CIR/CodeGen/CIRGenFunction.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,8 +1476,8 @@ class CIRGenFunction : public CIRGenTypeCache {
14761476

14771477
RValue emitCXXPseudoDestructorExpr(const CXXPseudoDestructorExpr *expr);
14781478

1479-
RValue emitNewOrDeleteBuiltinCall(const FunctionProtoType* type,
1480-
const CallExpr* call, bool isDelete);
1479+
RValue emitNewOrDeleteBuiltinCall(const FunctionProtoType *type,
1480+
const CallExpr *call, bool isDelete);
14811481

14821482
void emitCXXTemporary(const CXXTemporary *temporary, QualType tempType,
14831483
Address ptr);

0 commit comments

Comments
 (0)