Skip to content

Commit c8da225

Browse files
authored
[Clang] Replace Intrinsic::getDeclaration with getOrInsertDeclaration (#111990)
Fix build failure from the rename change. Looks like one additional reference sneaked in between pre-commit checks and the commit itself.
1 parent 9a696b6 commit c8da225

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/CGBuiltin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18882,7 +18882,7 @@ case Builtin::BI__builtin_hlsl_elementwise_isinf: {
1888218882
// for the DirectX intrinsic and the demangled builtin name
1888318883
switch (CGM.getTarget().getTriple().getArch()) {
1888418884
case llvm::Triple::dxil:
18885-
return EmitRuntimeCall(Intrinsic::getDeclaration(
18885+
return EmitRuntimeCall(Intrinsic::getOrInsertDeclaration(
1888618886
&CGM.getModule(), Intrinsic::dx_wave_getlaneindex));
1888718887
case llvm::Triple::spirv:
1888818888
return EmitRuntimeCall(CGM.CreateRuntimeFunction(

0 commit comments

Comments
 (0)