Skip to content

Commit 03cc71b

Browse files
committed
update use in ConstantFolding
- pass down the nullptr
1 parent 309b8f2 commit 03cc71b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Analysis/ConstantFolding.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3438,7 +3438,7 @@ static Constant *ConstantFoldFixedVectorCall(
34383438
// Gather a column of constants.
34393439
for (unsigned J = 0, JE = Operands.size(); J != JE; ++J) {
34403440
// Some intrinsics use a scalar type for certain arguments.
3441-
if (isVectorIntrinsicWithScalarOpAtArg(IntrinsicID, J)) {
3441+
if (isVectorIntrinsicWithScalarOpAtArg(IntrinsicID, J, /*TTI=*/nullptr)) {
34423442
Lane[J] = Operands[J];
34433443
continue;
34443444
}

0 commit comments

Comments
 (0)