Skip to content

Commit

Permalink
Rebase to avoid conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
premanandrao committed Nov 14, 2024
1 parent 86a696d commit e4face5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clang/include/clang/Basic/DiagnosticSemaKinds.td
Original file line number Diff line number Diff line change
Expand Up @@ -12391,7 +12391,7 @@ def err_builtin_invalid_arg_type: Error <
"a vector of integers|"
"an unsigned integer|"
"an 'int'|"
"a vector of floating points}"
"a vector of floating points|"
"a function pointer}1 (was %2)">;

def err_builtin_invalid_arg_value: Error<
Expand Down
1 change: 1 addition & 0 deletions clang/lib/AST/ExprConstant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13709,6 +13709,7 @@ bool IntExprEvaluator::VisitBuiltinCallExpr(const CallExpr *E,
if (Msk[I])
Result.setBitVal(P++, Val[I]);
return Success(Result, E);
}

case Builtin::BI__builtin_sycl_is_kernel: {
return isSYCLFreeFunctionKernel(*this, Info, E, "sycl-single-task-kernel",
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/Sema/SemaChecking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3042,7 +3042,7 @@ Sema::CheckBuiltinFunctionCall(FunctionDecl *FDecl, unsigned BuiltinID,

if (!ArgTy->isFunctionProtoType() && !ArgTy->isFunctionPointerType()) {
Diag(Arg->getBeginLoc(), diag::err_builtin_invalid_arg_type)
<< 1 << /* pointer to function type */ 9 << ArgTy;
<< 1 << /* pointer to function type */ 10 << ArgTy;
return ExprError();
}

Expand Down

0 comments on commit e4face5

Please sign in to comment.