Skip to content

Commit e4face5

Browse files
committed
Rebase to avoid conflicts
1 parent 86a696d commit e4face5

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12391,7 +12391,7 @@ def err_builtin_invalid_arg_type: Error <
1239112391
"a vector of integers|"
1239212392
"an unsigned integer|"
1239312393
"an 'int'|"
12394-
"a vector of floating points}"
12394+
"a vector of floating points|"
1239512395
"a function pointer}1 (was %2)">;
1239612396

1239712397
def err_builtin_invalid_arg_value: Error<

clang/lib/AST/ExprConstant.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13709,6 +13709,7 @@ bool IntExprEvaluator::VisitBuiltinCallExpr(const CallExpr *E,
1370913709
if (Msk[I])
1371013710
Result.setBitVal(P++, Val[I]);
1371113711
return Success(Result, E);
13712+
}
1371213713

1371313714
case Builtin::BI__builtin_sycl_is_kernel: {
1371413715
return isSYCLFreeFunctionKernel(*this, Info, E, "sycl-single-task-kernel",

clang/lib/Sema/SemaChecking.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3042,7 +3042,7 @@ Sema::CheckBuiltinFunctionCall(FunctionDecl *FDecl, unsigned BuiltinID,
30423042

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

0 commit comments

Comments
 (0)