[clang] bf19730 - CGBuiltin: Remove uses of deprecated CreateCall overloads
Nicolai Hähnle via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 17 15:27:06 PST 2020
Author: Nicolai Hähnle
Date: 2020-02-18T00:24:09+01:00
New Revision: bf197304a66aac3cde967539b40c018cede66761
URL: https://github.com/llvm/llvm-project/commit/bf197304a66aac3cde967539b40c018cede66761
DIFF: https://github.com/llvm/llvm-project/commit/bf197304a66aac3cde967539b40c018cede66761.diff
LOG: CGBuiltin: Remove uses of deprecated CreateCall overloads
Reviewers: t.p.northover
Subscribers: cfe-commits, llvm-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D74673
Added:
Modified:
clang/lib/CodeGen/CGBuiltin.cpp
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp
index af9be3a1c128..eb87180ee900 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -13303,7 +13303,7 @@ Value *CodeGenFunction::EmitAMDGPUBuiltinExpr(unsigned BuiltinID,
llvm::Value *Src2 = EmitScalarExpr(E->getArg(2));
// FIXME-GFX10: How should 32 bit mask be handled?
- Value *F = CGM.getIntrinsic(Intrinsic::amdgcn_icmp,
+ Function *F = CGM.getIntrinsic(Intrinsic::amdgcn_icmp,
{ Builder.getInt64Ty(), Src0->getType() });
return Builder.CreateCall(F, { Src0, Src1, Src2 });
}
@@ -13314,7 +13314,7 @@ Value *CodeGenFunction::EmitAMDGPUBuiltinExpr(unsigned BuiltinID,
llvm::Value *Src2 = EmitScalarExpr(E->getArg(2));
// FIXME-GFX10: How should 32 bit mask be handled?
- Value *F = CGM.getIntrinsic(Intrinsic::amdgcn_fcmp,
+ Function *F = CGM.getIntrinsic(Intrinsic::amdgcn_fcmp,
{ Builder.getInt64Ty(), Src0->getType() });
return Builder.CreateCall(F, { Src0, Src1, Src2 });
}
More information about the cfe-commits
mailing list