Skip to content

Commit 6269086

Browse files
lukaszgotszaldintelsys_zuul
authored andcommitted
use IGC_ASSERT in common igc/resourceDimTypes.h
Change-Id: I66f5e119593fcb31a6bc3c04117495e8baa6e2d3
1 parent d36f8dd commit 6269086

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

IGC/common/igc_resourceDimTypes.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2929
#include <llvm/IR/Module.h>
3030
#include <llvm/IR/IRBuilder.h>
3131
#include "common/LLVMWarningsPop.hpp"
32+
#include "Probe.h"
3233

3334
namespace IGC
3435
{
@@ -61,7 +62,7 @@ namespace IGC
6162

6263
inline llvm::Type* GetResourceDimensionType(llvm::Module& module, RESOURCE_DIMENSION_TYPE resourceDimTypeId)
6364
{
64-
assert((resourceDimTypeId == DIM_TYPED_BUFFER_TYPE ||
65+
IGC_ASSERT((resourceDimTypeId == DIM_TYPED_BUFFER_TYPE ||
6566
resourceDimTypeId == DIM_1D_TYPE || resourceDimTypeId == DIM_1D_ARRAY_TYPE ||
6667
resourceDimTypeId == DIM_2D_TYPE || resourceDimTypeId == DIM_2D_ARRAY_TYPE ||
6768
resourceDimTypeId == DIM_3D_TYPE || resourceDimTypeId == DIM_CUBE_TYPE || resourceDimTypeId == DIM_CUBE_ARRAY_TYPE));

0 commit comments

Comments
 (0)