Skip to content

Commit bd691ed

Browse files
committed
fixup: remove unnecessary TODOs
1 parent f729055 commit bd691ed

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

clang/lib/CodeGen/HLSLBufferLayoutBuilder.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ bool HLSLBufferLayoutBuilder::layoutField(const FieldDecl *FD,
198198
// For array of structures, create a new array with a layout type
199199
// instead of the structure type.
200200
if (Ty->isStructureOrClassType()) {
201-
// TODO: Can we have offsets if we get here from `ConstantBuffer<T>`?
202201
CGHLSLOffsetInfo EmptyOffsets;
203202
llvm::Type *NewTy = cast<llvm::TargetExtType>(
204203
createLayoutType(Ty->getAsCanonical<RecordType>(), EmptyOffsets));
@@ -220,7 +219,6 @@ bool HLSLBufferLayoutBuilder::layoutField(const FieldDecl *FD,
220219

221220
} else if (FieldTy->isStructureOrClassType()) {
222221
// Create a layout type for the structure
223-
// TODO: Can we have offsets if we get here from `ConstantBuffer<T>`?
224222
CGHLSLOffsetInfo EmptyOffsets;
225223
ElemLayoutTy = createLayoutType(
226224
cast<RecordType>(FieldTy->getAsCanonical<RecordType>()), EmptyOffsets);

0 commit comments

Comments
 (0)