File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
IGC/Compiler/Optimizer/OpenCLPasses/ImageFuncs Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -63,12 +63,20 @@ void ImageFuncResolution::visitCallInst(CallInst& CI)
63
63
64
64
if (funcName.equals (ImageFuncsAnalysis::GET_IMAGE_HEIGHT))
65
65
{
66
- IGC_ASSERT_MESSAGE (isImplicitImageArgs, " Getting Image Height from implicit args is supported only in bindful mode" );
66
+ if (!isImplicitImageArgs)
67
+ {
68
+ IGC_ASSERT_MESSAGE (false , " Getting Image Height from implicit args is supported only in bindful mode" );
69
+ return ;
70
+ }
67
71
imageRes = getImageHeight (CI);
68
72
}
69
73
else if (funcName.equals (ImageFuncsAnalysis::GET_IMAGE_WIDTH))
70
74
{
71
- IGC_ASSERT_MESSAGE (isImplicitImageArgs, " Getting Image Width from implicit args is supported only in bindful mode" );
75
+ if (!isImplicitImageArgs)
76
+ {
77
+ IGC_ASSERT_MESSAGE (false , " Getting Image Width from implicit args is supported only in bindful mode" );
78
+ return ;
79
+ }
72
80
imageRes = getImageWidth (CI);
73
81
}
74
82
else if (funcName.equals (ImageFuncsAnalysis::GET_IMAGE_DEPTH))
You can’t perform that action at this time.
0 commit comments