Skip to content

Commit e7ecc45

Browse files
fda0igcbot
authored andcommitted
Fix tryFindPointerOrigin assert
Fix assert condition to better match the message and intention behind it.
1 parent b63540c commit e7ecc45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IGC/AdaptorCommon/LivenessUtils/AllocationLivenessAnalyzer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ bool tryFindPointerOrigin(Value *ptr, SmallVectorImpl<Instruction *> &origins) {
391391
DenseSet<Value *> cache;
392392
bool found = tryFindPointerOriginImpl(ptr, origins, cache);
393393

394-
IGC_ASSERT_MESSAGE(found && !origins.empty(), "Origin reported as found but no origins were added!");
394+
IGC_ASSERT_MESSAGE(!(found && origins.empty()), "Origin reported as found but no origins were added!");
395395

396396
return found;
397397
}

0 commit comments

Comments
 (0)