Skip to content

Commit 043573f

Browse files
committed
Change function usage from main
1 parent 256a980 commit 043573f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,11 +559,12 @@ mlir::Value CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID,
559559
break;
560560
}
561561

562+
mlir::Location loc = getLoc(expr->getExprLoc());
562563
unsigned minElts =
563564
std::min(cast<cir::VectorType>(ops[0].getType()).getSize(),
564565
cast<cir::VectorType>(ops[2].getType()).getSize());
565-
ops[3] = getMaskVecValue(*this, expr, ops[3], minElts);
566-
return emitIntrinsicCallOp(*this, expr, intrinsicName.str(),
566+
ops[3] = getMaskVecValue(builder, loc, ops[3], minElts);
567+
return emitIntrinsicCallOp(builder, loc, intrinsicName.str(),
567568
convertType(expr->getType()), ops);
568569
}
569570
case X86::BI__builtin_ia32_scattersiv8df:

0 commit comments

Comments
 (0)