Skip to content

Commit c46a0c0

Browse files
committed
[clang codegen] Address review comment on comment in constWithPadding.
1 parent d788814 commit c46a0c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/lib/CodeGen/CGDecl.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,9 @@ static llvm::Constant *constWithPadding(CodeGenModule &CGM, IsPattern isPattern,
10751075
auto *NewArrayTy = llvm::ArrayType::get(NewElemTy, Size);
10761076
return llvm::ConstantArray::get(NewArrayTy, Values);
10771077
}
1078-
// FIXME: Do we need to handle tail padding in vectors?
1078+
// FIXME: Add handling for tail padding in vectors. Vectors don't
1079+
// have padding between or inside elements, but the total amount of
1080+
// data can be less than the allocated size.
10791081
return constant;
10801082
}
10811083

0 commit comments

Comments
 (0)