Skip to content

Commit dd4b423

Browse files
sys-igcigcbot
authored andcommitted
[Autobackout][FunctionalRegression]Revert of change: f441bbd: Fix assert due to 0 size
Fixed an assert in test cases due to a zero size is passed down to attribute build for RT.
1 parent f441bbd commit dd4b423

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

IGC/AdaptorCommon/RayTracing/RTBuilder.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,10 +1499,7 @@ void RTBuilder::setReturnAlignment(CallInst* CI, uint32_t AlignVal)
14991499

15001500
void RTBuilder::setDereferenceable(CallInst* CI, uint32_t Size)
15011501
{
1502-
if (Size)
1503-
{
1504-
CI->addRetAttr(Attribute::getWithDereferenceableBytes(CI->getContext(), Size));
1505-
}
1502+
CI->addRetAttr(Attribute::getWithDereferenceableBytes(CI->getContext(), Size));
15061503
}
15071504

15081505
Value* RTBuilder::getGlobalBufferPtr(IGC::ADDRESS_SPACE Addrspace)

0 commit comments

Comments
 (0)