Skip to content

Commit fd750c4

Browse files
jaladreipsigcbot
authored andcommitted
Restore previous logic for handling nullptr for typed param attributes
Restore previous logic for handling nullptr for typed param attributes
1 parent 9ed3fd0 commit fd750c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

IGC/GenISAIntrinsics/GenIntrinsicFunctions.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,9 @@ class IntrinsicFunctionImp : public llvm::Function
254254
pointeeType = arg.m_Type.m_Pointer.m_Type.GetType(ctx);
255255
}
256256

257-
IGC_ASSERT_MESSAGE(pointeeType, "Missing type for the type-dependent attribute!");
257+
// IGC_ASSERT_MESSAGE(pointeeType, "Missing type for the type-dependent attribute!");
258+
if (!pointeeType)
259+
return;
258260

259261
mainAttrList = mainAttrList.addParamAttribute(ctx, { index }, llvm::Attribute::get(ctx, arg.m_AttrKind, pointeeType));
260262
}

0 commit comments

Comments
 (0)