[clang codegen] Address review comment on comment in constWithPadding.

This commit is contained in:
Eli Friedman 2020-03-25 10:56:48 -07:00
parent d7888149aa
commit c46a0c07a6

View File

@ -1075,7 +1075,9 @@ static llvm::Constant *constWithPadding(CodeGenModule &CGM, IsPattern isPattern,
auto *NewArrayTy = llvm::ArrayType::get(NewElemTy, Size);
return llvm::ConstantArray::get(NewArrayTy, Values);
}
// FIXME: Do we need to handle tail padding in vectors?
// FIXME: Add handling for tail padding in vectors. Vectors don't
// have padding between or inside elements, but the total amount of
// data can be less than the allocated size.
return constant;
}