Skip to content

Commit 58a330c

Browse files
committed
Check isValidState
1 parent 1bb6184 commit 58a330c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ struct AAAMDMaxNumWorkgroups
902902

903903
const auto *CallerInfo = A.getAAFor<AAAMDMaxNumWorkgroups>(
904904
*this, IRPosition::function(*Caller), DepClassTy::REQUIRED);
905-
if (!CallerInfo)
905+
if (!CallerInfo || !CallerInfo->isValidState())
906906
return false;
907907

908908
Change |=

0 commit comments

Comments
 (0)