Skip to content

Commit 18c1d96

Browse files
committed
code review feedback - remove extra line, fix comment
1 parent 0362c81 commit 18c1d96

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

clang/lib/Sema/SemaDecl.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14183,7 +14183,6 @@ void Sema::ActOnUninitializedDecl(Decl *RealDecl) {
1418314183
if (getLangOpts().OpenCL &&
1418414184
Var->getType().getAddressSpace() == LangAS::opencl_local)
1418514185
return;
14186-
1418714186
// C++03 [dcl.init]p9:
1418814187
// If no initializer is specified for an object, and the
1418914188
// object is of (possibly cv-qualified) non-POD class type (or

clang/lib/Sema/SemaHLSL.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,12 +466,12 @@ static CXXRecordDecl *createHostLayoutStruct(Sema &S,
466466

467467
// Creates host layout struct for HLSL Buffer. The struct will include only
468468
// fields of types that are allowed in HLSL buffer and it will filter out:
469-
// - static variable declarations
469+
// - static or groupshared variable declarations
470470
// - resource classes
471471
// - empty structs
472472
// - zero-sized arrays
473473
// - non-variable declarations
474-
// The layour struct will be added to the HLSLBufferDecl declarations.
474+
// The layout struct will be added to the HLSLBufferDecl declarations.
475475
void createHostLayoutStructForBuffer(Sema &S, HLSLBufferDecl *BufDecl) {
476476
ASTContext &AST = S.getASTContext();
477477
IdentifierInfo *II = getHostLayoutStructName(S, BufDecl, true);

0 commit comments

Comments
 (0)