Skip to content

Commit

Permalink
[Clang] Replace Intrinsic::getDeclaration with getOrInsertDeclaration (
Browse files Browse the repository at this point in the history
…#111990)

Fix build failure from the rename change. Looks like one additional
reference sneaked in between pre-commit checks and the commit itself.
  • Loading branch information
jurahul authored Oct 11, 2024
1 parent 9a696b6 commit c8da225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/CodeGen/CGBuiltin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18882,7 +18882,7 @@ case Builtin::BI__builtin_hlsl_elementwise_isinf: {
// for the DirectX intrinsic and the demangled builtin name
switch (CGM.getTarget().getTriple().getArch()) {
case llvm::Triple::dxil:
return EmitRuntimeCall(Intrinsic::getDeclaration(
return EmitRuntimeCall(Intrinsic::getOrInsertDeclaration(
&CGM.getModule(), Intrinsic::dx_wave_getlaneindex));
case llvm::Triple::spirv:
return EmitRuntimeCall(CGM.CreateRuntimeFunction(
Expand Down

0 comments on commit c8da225

Please sign in to comment.