Skip to content

Commit 27348ce

Browse files
committed
Apply clang-format to commit 2bc239b
1 parent 2bc239b commit 27348ce

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

llvm/lib/Target/DirectX/DXILOpBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ static StructType *getBinaryWithCarryType(LLVMContext &Context) {
234234
if (auto *ST = StructType::getTypeByName(Context, "dx.types.i32c"))
235235
return ST;
236236
Type *Int32Ty = Type::getInt32Ty(Context);
237-
Type *Int1Ty= Type::getInt1Ty(Context);
237+
Type *Int1Ty = Type::getInt1Ty(Context);
238238
return StructType::create({Int32Ty, Int1Ty}, "dx.types.i32c");
239239
}
240240

llvm/lib/Target/DirectX/DXILOpLowering.cpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -364,12 +364,16 @@ class OpLowerer {
364364
if (auto *EVI = dyn_cast<ExtractValueInst>(U.getUser())) {
365365

366366
if (EVI->getNumIndices() != 1)
367-
return createStringError(std::errc::invalid_argument, (std::string(Intrin->getOpcodeName()) + " has only 2 elements").c_str());
367+
return createStringError(
368+
std::errc::invalid_argument,
369+
(std::string(Intrin->getOpcodeName()) + " has only 2 elements")
370+
.c_str());
368371
EVI->setOperand(0, Op);
369372
} else {
370-
return make_error<StringError>(
371-
(std::string(Intrin->getOpcodeName()) + " use is not ExtractValueInst").c_str(),
372-
inconvertibleErrorCode());
373+
return make_error<StringError>((std::string(Intrin->getOpcodeName()) +
374+
" use is not ExtractValueInst")
375+
.c_str(),
376+
inconvertibleErrorCode());
373377
}
374378
}
375379

@@ -827,8 +831,7 @@ class OpLowerer {
827831
// https://github.com/llvm/llvm-project/issues/113192 is fixed
828832
case Intrinsic::uadd_with_overflow:
829833
HasErrors |= replaceFunctionWithNamedStructOp(
830-
F, OpCode::UAddc,
831-
OpBuilder.getBinaryWithCarryType(M.getContext()),
834+
F, OpCode::UAddc, OpBuilder.getBinaryWithCarryType(M.getContext()),
832835
[&](CallInst *CI, CallInst *Op) {
833836
return replaceExtractElementTypeOfCallUsages(CI, Op);
834837
});

0 commit comments

Comments
 (0)