Skip to content

Commit 7317ee4

Browse files
elvinw-inteligcbot
authored andcommitted
Unblock debugger assert catching from IGC_ASSERT
This will allow debugger trap into actual assert instead of fail on IGC_ASSERT(0) before catch finishes.
1 parent f5a9c84 commit 7317ee4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IGC/common/debug/Debug.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ using namespace llvm;
5252

5353
int CatchAssert( int reportType, char *userMessage, int *retVal )
5454
{
55-
IGC_ASSERT(0);
5655
if(IsDebuggerPresent())
5756
{
5857
*retVal = 1; // Break into the debugger or print a stack
5958
}
6059
else
6160
{
61+
IGC_ASSERT(0);
6262
*retVal = 0;
6363
}
6464
return true; // we always want to abort, return false pops up a window

0 commit comments

Comments
 (0)