Skip to content

Commit ff84239

Browse files
committed
Fix format, and update ast tests.
1 parent 1e794cd commit ff84239

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/lib/AST/Type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5132,7 +5132,7 @@ bool Type::isHLSLResourceWrapper() const {
51325132

51335133
CXXRecordDecl *RD = RT->getAsCXXRecordDecl();
51345134
assert(RD != nullptr &&
5135-
"all HLSL structs and classes should be CXXRecordDecl");
5135+
"all HLSL structs and classes should be CXXRecordDecl");
51365136
assert(RD->isCompleteDefinition() && "expecting complete type");
51375137
if (RD->field_empty()) {
51385138
return false;

clang/test/AST/HLSL/cbuffer.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ cbuffer CB {
159159
static float SV;
160160
// CHECK: VarDecl {{.*}} s7 'EmptyStruct' callinit
161161
EmptyStruct s7;
162-
// CHECK: VarDecl {{.*}} Buf 'RWBuffer<float>':'hlsl::RWBuffer<float>' callinit
162+
// CHECK: VarDecl {{.*}} Buf 'RWBuffer<float>':'hlsl::RWBuffer<float>' static callinit
163163
RWBuffer<float> Buf;
164164
// CHECK: VarDecl {{.*}} ea 'EmptyArrayTypedef':'float[10][0]'
165165
EmptyArrayTypedef ea;

0 commit comments

Comments
 (0)