Skip to content

Commit 533d9a1

Browse files
committed
Add assert based on review comment
Signed-off-by: Soumi Manna <[email protected]>
1 parent bb70e24 commit 533d9a1

File tree

1 file changed

+1
-2
lines changed
  • clang/include/clang/Sema

1 file changed

+1
-2
lines changed

clang/include/clang/Sema/Sema.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12838,8 +12838,7 @@ template <typename AttrType>
1283812838
void Sema::addIntelSYCLSingleArgFunctionAttr(Decl *D,
1283912839
const AttributeCommonInfo &CI,
1284012840
Expr *E) {
12841-
if (!E)
12842-
return;
12841+
assert (!E);
1284312842

1284412843
if (!E->isInstantiationDependent()) {
1284512844
Optional<llvm::APSInt> ArgVal = E->getIntegerConstantExpr(getASTContext());

0 commit comments

Comments
 (0)