Skip to content

Commit fbb866a

Browse files
lukaszgotszaldintelsys_zuul
authored andcommitted
update IGC_ASSERT_MESSAGE
Change-Id: I36c421736bba060be7949f9c45b3cdc020b16ced
1 parent 031c5c6 commit fbb866a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

IGC/Compiler/CISACodeGen/EmitVISAPass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2323,7 +2323,7 @@ void EmitPass::emitVMESendSIC2(GenIntrinsicInst* inst)
23232323
// when either fwdRefImg or bwdRefImg is presented.
23242324
if (srcImgBTI->GetImmediateValue() != fwdRefImgBTI->GetImmediateValue())
23252325
{
2326-
IGC_ASSERT_MESSAGE(srcImgBTI->GetImmediateValue() + 1 == fwdRefImgBTI->GetImmediateValue(),& "srcImg BTI and refImg BTI are not consecutive!");
2326+
IGC_ASSERT_MESSAGE(srcImgBTI->GetImmediateValue() + 1 == fwdRefImgBTI->GetImmediateValue(), "srcImg BTI and refImg BTI are not consecutive!");
23272327

23282328
if (fwdRefImgBTI->GetImmediateValue() != bwdRefImgBTI->GetImmediateValue())
23292329
{

IGC/Probe/Assertion.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3333

3434
#define IGC_ASSERT assert
3535

36+
#define IGC_ASSERT_MESSAGE(x, m) IGC_ASSERT(x)
37+
3638
#define IGC_ASSERT_EXIT(x) \
3739
do \
3840
{ \
@@ -43,9 +45,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4345
} \
4446
} while(0)
4547

48+
#define IGC_ASSERT_EXIT_MESSAGE(x, m) IGC_ASSERT_EXIT(x)
4649

47-
#define IGC_ASSERT_MESSAGE(x, m) IGC_ASSERT((x) && (m))
48-
49-
#define IGC_ASSERT_EXIT_MESSAGE(x, m) IGC_ASSERT_EXIT((x) && (m))
5050

5151
#endif // IGC_PROBE_ASSERTION_H

0 commit comments

Comments
 (0)