Skip to content

Commit ab08b9b

Browse files
committed
Revert unnecessary change
Signed-off-by: Soumi Manna <[email protected]>
1 parent 39bb37f commit ab08b9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaDeclAttr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4067,7 +4067,7 @@ SYCLIntelMaxGlobalWorkDimAttr *Sema::MergeSYCLIntelMaxGlobalWorkDimAttr(
40674067
// ReqdWorkGroupSizeAttr, check to see if they hold equal values
40684068
// (1, 1, 1) in case the value of SYCLIntelMaxGlobalWorkDimAttr
40694069
// equals to 0.
4070-
const auto *MergeExpr = cast<ConstantExpr>(A.getValue());
4070+
const auto *MergeExpr = dyn_cast<ConstantExpr>(A.getValue());
40714071
if (MergeExpr->getResultAsAPSInt() == 0) {
40724072
if (checkWorkGroupSizeAttrExpr<SYCLIntelMaxWorkGroupSizeAttr>(*this, D,
40734073
A) ||

0 commit comments

Comments
 (0)