Skip to content

Commit c10e6f3

Browse files
committed
Update shortcut to "Qr"
1 parent f324f2d commit c10e6f3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

clang/lib/AST/ASTContext.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12540,6 +12540,10 @@ static QualType DecodeTypeFromStr(const char *&Str, const ASTContext &Context,
1254012540
Type = Context.AMDGPUTextureTy;
1254112541
break;
1254212542
}
12543+
case 'r': {
12544+
Type = Context.HLSLResourceTy;
12545+
break;
12546+
}
1254312547
default:
1254412548
llvm_unreachable("Unexpected target builtin type");
1254512549
}
@@ -12615,9 +12619,6 @@ static QualType DecodeTypeFromStr(const char *&Str, const ASTContext &Context,
1261512619
case 'm':
1261612620
Type = Context.MFloat8Ty;
1261712621
break;
12618-
case 'r':
12619-
Type = Context.HLSLResourceTy;
12620-
break;
1262112622
}
1262212623

1262312624
// If there are modifiers and if we're allowed to parse them, go for it.

clang/utils/TableGen/ClangBuiltinsEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ class PrototypeParser {
330330
.Case("__builtin_va_list", "a")
331331
.Case("__float128", "LLd")
332332
.Case("__fp16", "h")
333-
.Case("__hlsl_resource_t", "r")
333+
.Case("__hlsl_resource_t", "Qr")
334334
.Case("__int128_t", "LLLi")
335335
.Case("_Float16", "x")
336336
.Case("__bf16", "y")

0 commit comments

Comments
 (0)