We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39bb37f commit ab08b9bCopy full SHA for ab08b9b
clang/lib/Sema/SemaDeclAttr.cpp
@@ -4067,7 +4067,7 @@ SYCLIntelMaxGlobalWorkDimAttr *Sema::MergeSYCLIntelMaxGlobalWorkDimAttr(
4067
// ReqdWorkGroupSizeAttr, check to see if they hold equal values
4068
// (1, 1, 1) in case the value of SYCLIntelMaxGlobalWorkDimAttr
4069
// equals to 0.
4070
- const auto *MergeExpr = cast<ConstantExpr>(A.getValue());
+ const auto *MergeExpr = dyn_cast<ConstantExpr>(A.getValue());
4071
if (MergeExpr->getResultAsAPSInt() == 0) {
4072
if (checkWorkGroupSizeAttrExpr<SYCLIntelMaxWorkGroupSizeAttr>(*this, D,
4073
A) ||
0 commit comments