Skip to content

Commit 676c948

Browse files
dlei6gigcbot
authored andcommitted
Fixed small typo from LegalizeFunctionSignatures pass
1 parent 11af219 commit 676c948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IGC/AdaptorCommon/LegalizeFunctionSignatures.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ bool LegalizeFunctionSignatures::runOnModule(Module& M)
8383
inline bool isLegalReturnType(Type* ty, bool isStackCall)
8484
{
8585
// for functions, check return type and stackcall attribute
86-
if (ty->getPrimitiveSizeInBits() && isStackCall)
86+
if (ty->getPrimitiveSizeInBits() > 64 && isStackCall)
8787
{
8888
return false;
8989
}

0 commit comments

Comments
 (0)