We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a696b6 commit c8da225Copy full SHA for c8da225
clang/lib/CodeGen/CGBuiltin.cpp
@@ -18882,7 +18882,7 @@ case Builtin::BI__builtin_hlsl_elementwise_isinf: {
18882
// for the DirectX intrinsic and the demangled builtin name
18883
switch (CGM.getTarget().getTriple().getArch()) {
18884
case llvm::Triple::dxil:
18885
- return EmitRuntimeCall(Intrinsic::getDeclaration(
+ return EmitRuntimeCall(Intrinsic::getOrInsertDeclaration(
18886
&CGM.getModule(), Intrinsic::dx_wave_getlaneindex));
18887
case llvm::Triple::spirv:
18888
return EmitRuntimeCall(CGM.CreateRuntimeFunction(
0 commit comments