Skip to content

Commit d1e16f2

Browse files
committed
update comment
1 parent f68ea5a commit d1e16f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Sema/SemaHLSL.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ static unsigned calculateLegacyCbufferSize(const ASTContext &Context,
202202
}
203203

204204
// Validate packoffset:
205-
// - make sure if packoffset it used on all decls or none
206-
// - the packoffset ranges must not overlap
205+
// - if packoffset it used it must be set on all declarations inside the buffer
206+
// - packoffset ranges must not overlap
207207
static void validatePackoffset(Sema &S, HLSLBufferDecl *BufDecl) {
208208
llvm::SmallVector<std::pair<VarDecl *, HLSLPackOffsetAttr *>> PackOffsetVec;
209209

0 commit comments

Comments
 (0)