diff --git a/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp b/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp index 5cfcb45e4bcad..87b3ef89da35a 100644 --- a/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp +++ b/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp @@ -742,7 +742,7 @@ class LowerMatrixIntrinsics { if (AllowContraction) { // Use fmuladd for floating point operations and let the backend decide // if that's profitable. - Value *FMulAdd = Intrinsic::getDeclaration( + Function *FMulAdd = Intrinsic::getDeclaration( Func.getParent(), Intrinsic::fmuladd, A->getType()); return Builder.CreateCall(FMulAdd, {A, B, Sum}); }