@@ -364,12 +364,16 @@ class OpLowerer {
364
364
if (auto *EVI = dyn_cast<ExtractValueInst>(U.getUser ())) {
365
365
366
366
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 ());
368
371
EVI->setOperand (0 , Op);
369
372
} 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 ());
373
377
}
374
378
}
375
379
@@ -827,8 +831,7 @@ class OpLowerer {
827
831
// https://github.com/llvm/llvm-project/issues/113192 is fixed
828
832
case Intrinsic::uadd_with_overflow:
829
833
HasErrors |= replaceFunctionWithNamedStructOp (
830
- F, OpCode::UAddc,
831
- OpBuilder.getBinaryWithCarryType (M.getContext ()),
834
+ F, OpCode::UAddc, OpBuilder.getBinaryWithCarryType (M.getContext ()),
832
835
[&](CallInst *CI, CallInst *Op) {
833
836
return replaceExtractElementTypeOfCallUsages (CI, Op);
834
837
});
0 commit comments