Skip to content

Commit da30d78

Browse files
committed
address test failures post rebase
1 parent 3a8f718 commit da30d78

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

clang/lib/Sema/SemaChecking.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5295,13 +5295,14 @@ bool Sema::CheckHLSLBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall) {
52955295
return true;
52965296
break;
52975297
}
5298-
case Builtin::BI__builtin_hlsl_elementwise_isinf:
5298+
case Builtin::BI__builtin_hlsl_elementwise_isinf: {
52995299
if (checkArgCount(*this, TheCall, 1))
53005300
return true;
53015301
if (CheckAllArgsHaveFloatRepresentation(this, TheCall))
53025302
return true;
53035303
SetElementTypeAsReturnType(this, TheCall, this->Context.BoolTy);
53045304
break;
5305+
}
53055306
case Builtin::BI__builtin_hlsl_elementwise_rsqrt:
53065307
case Builtin::BI__builtin_hlsl_elementwise_rcp:
53075308
case Builtin::BI__builtin_hlsl_elementwise_frac: {

clang/test/SemaHLSL/BuiltIns/isinf-errors.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ bool2 test_too_many_arg(float2 p0) {
1313

1414
bool builtin_bool_to_float_type_promotion(bool p1) {
1515
return __builtin_hlsl_elementwise_isinf(p1);
16-
// expected-error@-1 {{1st argument must be a vector, integer or floating point type (was 'bool')}}
16+
// expected-error@-1 {passing 'bool' to parameter of incompatible type 'float'}}
1717
}
1818

1919
bool builtin_isinf_int_to_float_promotion(int p1) {

0 commit comments

Comments
 (0)