Skip to content

Commit 4ce6c45

Browse files
jurahulDanielCChen
authored andcommitted
[Clang] Replace Intrinsic::getDeclaration with getOrInsertDeclaration (llvm#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 011a5aa commit 4ce6c45

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)